-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Throw PoHTTPClientBindingError when server returns a 40X (#67)
So that the client won't attempt another delivery.
- Loading branch information
Showing
4 changed files
with
56 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from './lib/client'; | ||
export { default as PoHTTPError } from './lib/PoHTTPError'; | ||
export { default as PoHTTPInvalidParcelError } from './lib/PoHTTPInvalidParcelError'; | ||
export { default as PoHTTPClientBindingError } from './lib/PoHTTPClientBindingError'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import PoHTTPError from './PoHTTPError'; | ||
|
||
/** | ||
* PoHTTP server refused parcel delivery, claiming a protocol violation by this client. | ||
*/ | ||
export default class PoHTTPClientBindingError extends PoHTTPError {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters