Struct GorgonResult
An error code message that is usually sent along with a GorgonException.
Inherited Members
Namespace: Gorgon.Core
Assembly: Gorgon.Core.dll
Syntax
public readonly struct GorgonResult : IGorgonNamedObject, IGorgonEquatableByRef<GorgonResult>, IEquatable<GorgonResult>
Constructors
| Edit this page View SourceGorgonResult(string, int, string)
Initializes a new instance of the GorgonResult struct.
Declaration
public GorgonResult(string name, int code, string description)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the error. |
int | code | The numeric code assigned to the error. |
string | description | The full description of the error. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |
ArgumentEmptyException | Thrown when the |
Properties
| Edit this page View SourceAccessDenied
Access is denied.
Declaration
public static GorgonResult AccessDenied { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
AlreadyInitialized
Initialization was already performed.
Declaration
public static GorgonResult AlreadyInitialized { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
CannotBind
There was an error during binding.
Declaration
public static GorgonResult CannotBind { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
CannotCompile
Cannot compile the source code.
Declaration
public static GorgonResult CannotCompile { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
CannotCreate
There was an error during creation.
Declaration
public static GorgonResult CannotCreate { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
CannotEnumerate
There was an error during the enumeration process.
Declaration
public static GorgonResult CannotEnumerate { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
CannotRead
There was an error while reading.
Declaration
public static GorgonResult CannotRead { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
CannotWrite
There was an error while writing.
Declaration
public static GorgonResult CannotWrite { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
Code
Property to set or return the error code to be sent along with the GorgonException.
Declaration
public int Code { get; }
Property Value
Type | Description |
---|---|
int |
CrossThreadCall
Cannot make this call across threads.
Declaration
public static GorgonResult CrossThreadCall { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
Description
Property to set or return the error message to be sent along with the GorgonException.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
string |
DriverError
There was an error interfacing with the driver.
Declaration
public static GorgonResult DriverError { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
FormatNotSupported
The requested format is not supported.
Declaration
public static GorgonResult FormatNotSupported { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
InvalidFileFormat
The file format is not supported.
Declaration
public static GorgonResult InvalidFileFormat { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
Name
Property to return the name of the error.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
NotInitialized
Initialization is required before continuing this operation.
Declaration
public static GorgonResult NotInitialized { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
OutOfMemory
There was not enough memory to complete the operation.
Declaration
public static GorgonResult OutOfMemory { get; }
Property Value
Type | Description |
---|---|
GorgonResult |
Methods
| Edit this page View SourceEquals(GorgonResult)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(GorgonResult other)
Parameters
Type | Name | Description |
---|---|---|
GorgonResult | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(in GorgonResult)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(in GorgonResult other)
Parameters
Type | Name | Description |
---|---|---|
GorgonResult | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(in GorgonResult, in GorgonResult)
Function to compare two instances for equality.
Declaration
public static bool Equals(in GorgonResult left, in GorgonResult right)
Parameters
Type | Name | Description |
---|---|---|
GorgonResult | left | The left instance to compare. |
GorgonResult | right | The right instance to compare. |
Returns
Type | Description |
---|---|
bool | true if equal, false if not. |
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | Another object to compare to. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string containing a fully qualified type name. |
Overrides
Operators
| Edit this page View Sourceoperator ==(GorgonResult, GorgonResult)
Operator to test for equality.
Declaration
public static bool operator ==(GorgonResult left, GorgonResult right)
Parameters
Type | Name | Description |
---|---|---|
GorgonResult | left | The left item to test. |
GorgonResult | right | The right item to test. |
Returns
Type | Description |
---|---|
bool | true if equal, false if not. |
operator !=(GorgonResult, GorgonResult)
Operator to test for inequality.
Declaration
public static bool operator !=(GorgonResult left, GorgonResult right)
Parameters
Type | Name | Description |
---|---|---|
GorgonResult | left | The left item to test. |
GorgonResult | right | The right item to test. |
Returns
Type | Description |
---|---|
bool | true if not equal, false if the items are equal. |