MimiCoreError
public enum MimiCoreError : Error
extension MimiCoreError: Equatable
extension MimiCoreError: CustomDebugStringConvertible
MimiCore error
- configuration: A configuration error has occurred in MimiCore.
- client: A client error occurred, with details if available.
- server: A server error occurred, with details if available.
- data: A data error occurred, with details if available.
- processing: An error occurred with processing communication.
- processingHandler: An internal error occurred in a processing handler.
- unknown: An unknown error occurred.
- unserviceable: Version of MimiCore is unserviceable and unsupported.
-
Configuration Error.
- invalidCredentials: Invalid credentials exist for the MimiCore client.
Declaration
Swift
public enum ConfigurationError : Int, Error
-
Error that occurred due to the client.
- badRequest: The request was invalid.
- unauthorized: Not currently authorized to access the resource.
- forbidden: Not authorized with sufficient rights to access this resource.
- notFound: Resource can’t be found.
- conflict: Conflict in the server.
- gone: Resource is unavailable permanently.
- unprocessableEntity: Unable to process the request instructions.
- unknown: Unknown client error.
Declaration
Swift
public enum ClientError : Int, Error
-
Error that occurred due to the server.
internal
: Server encountered an internal error.- notImplemented: Resource is not implemented on the server.
- serviceUnavailable: Server is not ready to handle the request.
- timeout: Timeout occurred.
- unknown: Unknown server error.
Declaration
Swift
public enum ServerError : Int, Error
-
Error that occurred due to data.
- missing: Data that was expected to be present is missing.
- invalidHash: Data had an invalid hash and was determined to be corrupt.
- invalid: Data was invalid.
Declaration
Swift
public enum DataError : Int, Error
-
Error that occurred with processing.
- processorRequestFailed: The request made to the processor failed.
Declaration
Swift
public enum ProcessingError : Int, Error
-
The raw underlying error that caused the core error.
Declaration
Swift
public var rawError: Error? { get }
-
Details of the error.
Declaration
Swift
public var details: MimiCoreErrorDetails? { get }