FaultCode
public enum FaultCode : Error
The main fault codes (env namespace)
-
Nothing to see here, folks. Move along.
Declaration
Swift
case NoFault
-
This means that we had an HTTP error, and you should look at the embedded HTTP code.
Declaration
Swift
case HTTPError(httpError: Int)
-
There was no response at the given IP address.
Declaration
Swift
case NoDeviceAtIPAddress(address: String)
-
Unable to get a SOAP authentication realm.
Declaration
Swift
case NilRealm
-
The device found an invalid element information item instead of the expected Envelope element information item.
Declaration
Swift
case VersionMismatch
-
One or more mandatory SOAP header blocks were not understood.
Declaration
Swift
case MustUnderstand
-
SOAP header block or SOAP body child element information item is scoped with data encoding that is not supported by the device.
Declaration
Swift
case DataEncodingUnknown
-
Whiskey Tango Foxtrot (SOAPEngine). Add any error (can be nil).
Declaration
Swift
case UnknownSOAPError(error: Error!)
-
Whiskey Tango Foxtrot (ONVIF). Add any error (can be nil).
Declaration
Swift
case UnknownONVIFError(error: Error!)
-
This returns a somewhat interpreted description of the fault. This will return the code, plus anything more. If this is an HTTP error, the HTTP response code is appened by a “-”. If the fault has subcodes, they are returned, attached to the code by “-”.
Declaration
Swift
public var localizedFullDescription: String { get }
-
This returns just the code.
Declaration
Swift
public var localizedDescription: String { get }