mirror of
https://github.com/jkcoxson/idevice.git
synced 2026-03-02 14:36:16 +01:00
Add missing error codes
This commit is contained in:
@@ -43,6 +43,13 @@ pub enum IdeviceErrorCode {
|
|||||||
Utf8Error = -35,
|
Utf8Error = -35,
|
||||||
InvalidArgument = -36,
|
InvalidArgument = -36,
|
||||||
UnknownErrorType = -37,
|
UnknownErrorType = -37,
|
||||||
|
PemParseFailed = -38,
|
||||||
|
MisagentFailure = -39,
|
||||||
|
InstallationProxyOperationFailed = -40,
|
||||||
|
Afc = -41,
|
||||||
|
UnknownAfcOpcode = -42,
|
||||||
|
InvalidAfcMagic = -43,
|
||||||
|
AfcMissingAttribute = -44,
|
||||||
// FFI specific bindings
|
// FFI specific bindings
|
||||||
AdapterIOFailed = -996,
|
AdapterIOFailed = -996,
|
||||||
ServiceNotFound = -997,
|
ServiceNotFound = -997,
|
||||||
@@ -93,6 +100,15 @@ impl From<IdeviceError> for IdeviceErrorCode {
|
|||||||
IdeviceError::Utf8Error => IdeviceErrorCode::Utf8Error,
|
IdeviceError::Utf8Error => IdeviceErrorCode::Utf8Error,
|
||||||
IdeviceError::InvalidArgument => IdeviceErrorCode::InvalidArgument,
|
IdeviceError::InvalidArgument => IdeviceErrorCode::InvalidArgument,
|
||||||
IdeviceError::UnknownErrorType(_) => IdeviceErrorCode::UnknownErrorType,
|
IdeviceError::UnknownErrorType(_) => IdeviceErrorCode::UnknownErrorType,
|
||||||
|
IdeviceError::PemParseFailed(_) => IdeviceErrorCode::PemParseFailed,
|
||||||
|
IdeviceError::MisagentFailure => IdeviceErrorCode::MisagentFailure,
|
||||||
|
IdeviceError::InstallationProxyOperationFailed(_) => {
|
||||||
|
IdeviceErrorCode::InstallationProxyOperationFailed
|
||||||
|
}
|
||||||
|
IdeviceError::Afc(_) => IdeviceErrorCode::Afc,
|
||||||
|
IdeviceError::UnknownAfcOpcode => IdeviceErrorCode::UnknownAfcOpcode,
|
||||||
|
IdeviceError::InvalidAfcMagic => IdeviceErrorCode::InvalidAfcMagic,
|
||||||
|
IdeviceError::AfcMissingAttribute => IdeviceErrorCode::AfcMissingAttribute,
|
||||||
_ => IdeviceErrorCode::InternalError,
|
_ => IdeviceErrorCode::InternalError,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user