Class Error
public class Error
- Inheritance
-
Error
- Inherited Members
Methods
Copy(ErrorHandle)
Calls native method g_error_copy.
public static extern ErrorOwnedHandle Copy(ErrorHandle error)
Parameters
error
ErrorHandleTransfer ownership: None Nullable: False
Returns
- ErrorOwnedHandle
Transfer ownership: Full Nullable: False
DomainRegister(NonNullableUtf8StringHandle, nuint, ErrorInitFunc, ErrorCopyFunc, ErrorClearFunc)
Calls native function g_error_domain_register. Version: 2.68
[Version("2.68")]
public static extern uint DomainRegister(NonNullableUtf8StringHandle errorTypeName, nuint errorTypePrivateSize, ErrorInitFunc errorTypeInit, ErrorCopyFunc errorTypeCopy, ErrorClearFunc errorTypeClear)
Parameters
errorTypeName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
errorTypePrivateSize
nuintTransfer ownership: None Nullable: False
errorTypeInit
ErrorInitFuncTransfer ownership: None Nullable: False
errorTypeCopy
ErrorCopyFuncTransfer ownership: None Nullable: False
errorTypeClear
ErrorClearFuncTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
DomainRegisterStatic(NonNullableUtf8StringHandle, nuint, ErrorInitFunc, ErrorCopyFunc, ErrorClearFunc)
Calls native function g_error_domain_register_static. Version: 2.68
[Version("2.68")]
public static extern uint DomainRegisterStatic(NonNullableUtf8StringHandle errorTypeName, nuint errorTypePrivateSize, ErrorInitFunc errorTypeInit, ErrorCopyFunc errorTypeCopy, ErrorClearFunc errorTypeClear)
Parameters
errorTypeName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
errorTypePrivateSize
nuintTransfer ownership: None Nullable: False
errorTypeInit
ErrorInitFuncTransfer ownership: None Nullable: False
errorTypeCopy
ErrorCopyFuncTransfer ownership: None Nullable: False
errorTypeClear
ErrorClearFuncTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
Free(ErrorHandle)
Calls native method g_error_free.
public static extern void Free(ErrorHandle error)
Parameters
error
ErrorHandleTransfer ownership: None Nullable: False
GetGType()
Calls native function g_error_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
Matches(ErrorHandle, Quark, int)
Calls native method g_error_matches.
public static extern bool Matches(ErrorHandle error, Quark domain, int code)
Parameters
error
ErrorHandleTransfer ownership: None Nullable: True
domain
QuarkTransfer ownership: None Nullable: False
code
intTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
NewLiteral(Quark, int, NonNullableUtf8StringHandle)
Calls native constructor g_error_new_literal.
public static extern ErrorOwnedHandle NewLiteral(Quark domain, int code, NonNullableUtf8StringHandle message)
Parameters
domain
QuarkTransfer ownership: None Nullable: False
code
intTransfer ownership: None Nullable: False
message
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- ErrorOwnedHandle
Transfer ownership: Full Nullable: False
NewLiteralUnowned(uint, int, NonNullableUtf8StringHandle)
public static extern ErrorUnownedHandle NewLiteralUnowned(uint domain, int code, NonNullableUtf8StringHandle message)
Parameters
domain
uintcode
intmessage
NonNullableUtf8StringHandle
Returns
NewValist(Quark, int, NonNullableUtf8StringHandle, IntPtr)
Calls native constructor g_error_new_valist. Version: 2.22
[Version("2.22")]
public static extern ErrorOwnedHandle NewValist(Quark domain, int code, NonNullableUtf8StringHandle format, IntPtr args)
Parameters
domain
QuarkTransfer ownership: None Nullable: False
code
intTransfer ownership: None Nullable: False
format
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
args
IntPtrTransfer ownership: None Nullable: False
Returns
- ErrorOwnedHandle
Transfer ownership: Full Nullable: False