note
VeloxDB is still in beta and APIs are subject to change. We are in the process of completing the documentation, so some sections may be incomplete or empty at this time.
Class DatabaseErrorDetail
Provides details on the cause of database exception.
Inheritance
Namespace: VeloxDB
Assembly: vlxc.dll
Syntax
public sealed class DatabaseErrorDetail : Object
Properties
ErrorType
Specifies the type of error.
Declaration
public DatabaseErrorType ErrorType { get; set; }
Property Value
Type | Description |
---|---|
DatabaseErrorType |
Id
Id of object that caused error. The meaning of this field depends on the value of ErrorType.
Declaration
public long Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
MemberName
Name of the member error references. The meaning of this field depends on the value of ErrorType.
Declaration
public string MemberName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Message
Error message. The meaning of this field depends on the value of ErrorType.
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PrimaryName
This field carries name, often class name. The meaning of this field depends on the value of ErrorType.
Declaration
public string PrimaryName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ReferencedId
Id of object referenced by problematic object. The meaning of this field depends on the value of ErrorType.
Declaration
public long ReferencedId { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
ReferencingId
Id of the object that references problematic object. The meaning of this field depends on the value of ErrorType.
Declaration
public long ReferencingId { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
SecondaryName
Additional name, often a name of referencing class. The meaning of this field depends on the value of ErrorType.
Declaration
public string SecondaryName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
IsRetryable()
Returns if the error can be safely retried.
Declaration
public bool IsRetryable()
Returns
Type | Description |
---|---|
System.Boolean |
ToString()
Return string representation of the error.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |