MTError
public enum MTError : Error
Represents all the errors that can occur in the MapTiler SDK.
All methods within the SDK throw MTError.
-
Method execution failed with exception.
Declaration
Swift
case exception(body: MTException)
Parameters
body
Exception details.
-
Method execution returned an invalid result.
Declaration
Swift
case invalidResultType(description: String)
Parameters
description
Debug description of the return type.
-
Method execution returned unsupported type.
Declaration
Swift
case unsupportedReturnType(description: String)
Parameters
description
Debug description of the command that returned unsupported type.
-
Method execution resulted in an unknown error.
Declaration
Swift
case unknown(description: String)
Parameters
description
Debug description of error.
-
Method execution halted. Bridge and/or Map are not loaded.
Declaration
Swift
case bridgeNotLoaded
-
Method execution failed due to missing parent entity.
Declaration
Swift
case missingParent
-
Numerical code of the exception.
Declaration
Swift
public var code: Int { get }
-
Explanation of the exception.
Declaration
Swift
public var reason: String { get }