Skip to content

Commit

Permalink
Move #exceptionSet: to ZnUtilts
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvc committed Jun 3, 2024
1 parent bd1f945 commit 1a8ed8f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 19 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ readRequestBadExceptionSet
"Return the set of exceptions which, when they occur while reading a request,
are interpreted as equivalent to a request parse error or bad request."

^ self
^ ZnUtils
exceptionSet:
#(#ZnParseError #ZnCharacterEncodingError #ZnUnknownScheme #ZnPortNotANumber #ZnTooManyDictionaryEntries #ZnEntityTooLarge)
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ readRequestTerminationExceptionSet
"Return the set of exceptions which, when they occur while reading a request,
are interpreted as equivalent to a timeout or connection close."

^ self
^ ZnUtils
exceptionSet:
#(#ConnectionClosed #ConnectionTimedOut #PrimitiveFailed)
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ writeResponseTerminationExceptionSet
"Return the set of exceptions which, when they occur while writing a response,
are interpreted as equivalent to a timeout or connection close."

^ self exceptionSet: #(#ConnectionClosed #ConnectionTimedOut #PrimitiveFailed)
^ ZnUtils
exceptionSet:
#(#ConnectionClosed #ConnectionTimedOut #PrimitiveFailed)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
converting
exceptionSet: classNames
^ classNames inject: ExceptionSet new into: [ :set :each |
(Smalltalk globals includesKey: each)
ifTrue: [
set
add: (Smalltalk at: each);
yourself ]
ifFalse: [ set ] ]
9 changes: 1 addition & 8 deletions repository/Zinc-HTTP.package/monticello.meta/categories.st
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
SystemOrganization addCategory: #'Zinc-HTTP'!
SystemOrganization addCategory: #'Zinc-HTTP-Client-Server'!
SystemOrganization addCategory: #'Zinc-HTTP-Core'!
SystemOrganization addCategory: #'Zinc-HTTP-Exceptions'!
SystemOrganization addCategory: #'Zinc-HTTP-Logging'!
SystemOrganization addCategory: #'Zinc-HTTP-Streaming'!
SystemOrganization addCategory: #'Zinc-HTTP-Support'!
SystemOrganization addCategory: #'Zinc-HTTP-Variables'!
self packageOrganizer ensurePackage: #'Zinc-HTTP' withTags: #(#'Client-Server' #Core #Exceptions #Logging #Streaming #Support #Variables)!

0 comments on commit 1a8ed8f

Please sign in to comment.