OrionHookError
public enum OrionHookError : LocalizedError, CustomStringConvertible
An error that occurred during hooking.
Additional cases may be added to this enum in the future.
-
Indicates that function hooking failed.
Declaration
Swift
case functionHookFailed(target: Function, underlying: Error)
-
Indicates that a
ClassHook
could not compute its target class.Declaration
Swift
case targetClassNotAvailable(hookName: String, underlying: Error)
-
Indicates that method hooking failed.
Declaration
Swift
case methodHookFailed(cls: AnyClass, sel: Selector, isClassMethod: Bool, underlying: Error)
-
Indicates that method addition (
orion:new
) failed.This may occur if, for example, a method with the provided selector already exists on the class.
Declaration
Swift
case methodAdditionFailed(cls: AnyClass, sel: Selector, isClassMethod: Bool, underlying: Error)
-
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public var errorDescription: String? { get }