Class HookException
Represents an exception related to the global hook.
Implements
Inherited Members
Namespace: SharpHook
Assembly: SharpHook.dll
Syntax
[Serializable]
public sealed class HookException : Exception, ISerializable
Constructors
| Improve this Doc View SourceHookException()
Initializes a new instance of the HookException class.
Declaration
public HookException()
HookException(UioHookResult)
Initializes a new instance of the HookException class.
Declaration
public HookException(UioHookResult result)
Parameters
Type | Name | Description |
---|---|---|
UioHookResult | result | The result of an opetaion which caused this exception. |
HookException(UioHookResult, Exception)
Initializes a new instance of the HookException class.
Declaration
public HookException(UioHookResult result, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
UioHookResult | result | The result of an opetaion which caused this exception. |
Exception | innerException | The exception which caused this exception. |
HookException(UioHookResult, String)
Initializes a new instance of the HookException class.
Declaration
public HookException(UioHookResult result, string message)
Parameters
Type | Name | Description |
---|---|---|
UioHookResult | result | The result of an opetaion which caused this exception. |
String | message | The message of the exception. |
HookException(UioHookResult, String, Exception)
Initializes a new instance of the HookException class.
Declaration
public HookException(UioHookResult result, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
UioHookResult | result | The result of an opetaion which caused this exception. |
String | message | The message of the exception. |
Exception | innerException | The exception which caused this exception. |
HookException(String)
Initializes a new instance of the HookException class.
Declaration
public HookException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message of the exception. |
HookException(String, Exception)
Initializes a new instance of the HookException class.
Declaration
public HookException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message of the exception. |
Exception | innerException | The exception which caused this exception. |
Properties
| Improve this Doc View SourceResult
Gets the result of an opetaion which caused this exception.
Declaration
public UioHookResult Result { get; }
Property Value
Type | Description |
---|---|
UioHookResult | The result of an opetaion which caused this exception. |
Methods
| Improve this Doc View SourceGetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about this exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialization info to set. |
StreamingContext | context | The streaming context. |