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.
Inherited Members
Namespace: VeloxDB
Assembly: vlxc.dll
Syntax
public sealed class DatabaseErrorDetail
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 |
|---|---|
| long |
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 |
|---|---|
| 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 |
|---|---|
| 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 |
|---|---|
| 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 |
|---|---|
| long |
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 |
|---|---|
| long |
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 |
|---|---|
| string |
Methods
IsRetryable()
Returns if the error can be safely retried.
Declaration
public bool IsRetryable()
Returns
| Type | Description |
|---|---|
| bool |
ToString()
Return string representation of the error.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |