-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
161 additions
and
8 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
import Foundation | ||
|
||
/** | ||
Errors on requesting a target. | ||
|
||
- BackendBuildingRequest: Raised on making request object. e.g raised by serializing multipart failure | ||
- BackendResponse: Raised on backend's completion of a request. e.g raised by request timeout | ||
- BackendUnexpect: All other errors raised by backend | ||
- Aborted: Raised by setting `endpoint.willPerform = false` | ||
- Cancelled: Raised by `cancellableToken.cancel()` | ||
= Underlying: Uncategoried errors | ||
*/ | ||
public enum Error: ErrorType { | ||
case BackendBuildingRequest(ErrorType) | ||
case BackendResponse(ErrorType) | ||
case BackendUnexpect(ErrorType) | ||
case Abort | ||
case Aborted | ||
case Cancelled | ||
case Underlying(ErrorType) | ||
} |
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
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