/// <summary>
/// Parent Category of an ErrorCode
/// </summary>
[Serializable]
[XmlType(TypeName = "ErrorCategory", AnonymousType = true)]
public enum DTErrorCategory
{
/// <summary>
/// Generic Server Error
/// </summary>
[EnumTextValue(@"Generic Server Error")]
Server = 100,
/// <summary>
/// Generic Client Error
/// </summary>
[EnumTextValue(@"Generic Client Error")]
Client = 1000,
/// <summary>
/// Client schema error
/// </summary>
[EnumTextValue(@"Client schema error")]
InvalidSchema = 1050,
/// <summary>
/// Client versioning error
/// </summary>
[EnumTextValue(@"Client versioning error")]
VersionMismatch = 1051,
/// <summary>
/// Error authenticating to access webservices
/// </summary>
[EnumTextValue(@"Error authenticating to access webservices")]
Authentication = 1500,
/// <summary>
/// Invalid data found in Request
/// </summary>
[EnumTextValue(@"Invalid data found in Request")]
InvalidRequestData = 2000,
}
/// <summary>
/// Specific code of an encountered Error.
/// </summary>
[Serializable]
[XmlType(TypeName = "ErrorCode", AnonymousType = true)]
public enum DTErrorCode
{
/// <summary>
/// Default Error Code
/// </summary>
[EnumTextValue(@"Default Error Code")]
Unavailable = 1,
/// <summary>
/// Generic Server Error
/// </summary>
[EnumTextValue(@"Generic Server Error")]
Server = 100,
/// <summary>
/// Generic Client Error
/// </summary>
[EnumTextValue(@"Generic Client Error")]
Client = 1000,
/// <summary>
/// Sql Injection Attempt
/// </summary>
[EnumTextValue(@"Sql Injection Attempt")]
SqlInjectionAttempt = 1106,
/// <summary>
/// Invalid Character Provided
/// </summary>
[EnumTextValue(@"Invalid Character")]
InvalidCharacter = 1107,
/// <summary>
/// Invalid XML Provided
/// </summary>
[EnumTextValue(@"Invalid XML")]
InvalidXML = 1108,
/// <summary>
/// XmlSchemaException
/// </summary>
[EnumTextValue(@"XML Schmea Validation Failed")]
XMLSchemaValidationFailed = 1109,
/// <summary>
/// Invalid data type in client request
/// </summary>
[EnumTextValue(@"Invalid data type in client request")]
InvalidDataType = 1110,
/// <summary>
/// Invalid value in SOAP message body
/// </summary>
[EnumTextValue(@"Invalid value in SOAP message body")]
InvalidValue = 1111,
/// <summary>
/// Invalid element in SOAP message body
/// </summary>
[EnumTextValue(@"Invalid element in SOAP message body")]
InvalidElement = 1112,
/// <summary>
/// Invaild characters in client request
/// </summary>
[EnumTextValue(@"Invalid characters in client request ")]
ProhibitedCharacters = 1115,
/// <summary>
/// Error authenticating client request
/// </summary>
[EnumTextValue(@"Error authenticating client request")]
AuthenticationFailed = 1500,
/// <summary>
/// Error decrypting client request
/// </summary>
[EnumTextValue(@"Error decrypting client request")]
AuthenticationEncryptionInvalid = 1505,
/// <summary>
/// Not authorized to complete client request
/// </summary>
[EnumTextValue(@"Not authorized to complete client request")]
AuthorizationDenied = 1551,
/// <summary>
/// Invalid customerName in client request
/// </summary>
[EnumTextValue(@"Invalid customerName in client request")]
InvalidCustomerName = 2000,
/// <summary>
/// Invalid customerID in client request
/// </summary>
[EnumTextValue(@"Invalid customerID in client request")]
InvalidCustomerID = 2001,
/// <summary>
/// Invalid DriverID in client request
/// </summary>
[EnumTextValue(@"Invalid DriverID in client request")]
InvalidDriverID = 2010,
/// <summary>
/// Invalid DriverName in client request
/// </summary>
[EnumTextValue(@"Invalid DriverLogon in client request")]
InvalidDriverLogon = 2011,
/// <summary>
/// Invalid DriverName in client request
/// </summary>
[EnumTextValue(@"Invalid Driver EmployeeID in client request")]
InvalidEmployeeId = 2012,
/// <summary>
/// Invalid TruckID in client request
/// </summary>
[EnumTextValue(@"Invalid TruckID in client request ")]
InvalidTruckPCID = 2020,
/// <summary>
/// Invalid Truck in client request
/// </summary>
[EnumTextValue(@"Invalid Truck in client request")]
InvalidTruckName = 2021,
/// <summary>
/// Invalid Truck in client request
/// </summary>
[EnumTextValue(@"Invalid TruckPCSerialNr in client request")]
InvalidTruckPCSerialNr = 2022,
/// <summary>
/// File data not provided in client request to send file
/// </summary>
[EnumTextValue(@"File data not provided in client request to send file")]
FileDataNotProvided = 2550,
/// <summary>
/// File data invalid in client request to send file
/// </summary>
[EnumTextValue(@"File data invalid in client request to send file")]
FileDataInvalid = 2551,
/// <summary>
/// No file name provided in client request to send file
/// </summary>
[EnumTextValue(@"No file name provided in client request to send file")]
FileNameNotProvided = 2552,
/// <summary>
/// No file mime type provided in client request to send file
/// </summary>
[EnumTextValue(@"No file mime type provided in client request to send file")]
FileMimeTypeNotProvided = 2553,
/// <summary>
/// No recipient list provided in client request
/// </summary>
[EnumTextValue(@"No recipient list provided in client request")]
RecipientsNotProvided = 3000,
/// <summary>
/// Cannot send to recipient driver in client request
/// </summary>
[EnumTextValue(@"Cannot send to recipient driver in client request")]
RecipientDriversNotAllowed = 3001,
/// <summary>
/// Cannot send to recipient truck in client request
/// </summary>
[EnumTextValue(@"Cannot send to recipient truck in client request")]
RecipientTrucksNotAllowed = 3002,
/// <summary>
/// Invalid file id
/// </summary>
[EnumTextValue(@"Invalid file id ")]
FileIDInvalid = 3500,
/// <summary>
/// Invalid Date range
/// </summary>
[EnumTextValue(@"Invalid date range ")]
InvalidDateRange = 4000,
/// <summary>
/// Arguement null or missing
/// </summary>
[EnumTextValue(@"Argument null or missing")]
ArgumentNullOrMissing = 1011,
/// <summary>
/// Invalid form id in client request
/// </summary>
[EnumTextValue(@"Invalid form id in client request")]
InvalidFormId = 4500,
/// <summary>
/// Invalid form field specified
/// </summary>
[EnumTextValue(@"Invalid form field specified")]
InvalidFormField = 4501,
/// <summary>
/// Invalid form definition number in client request
/// </summary>
[EnumTextValue(@"Invalid form definition number specified")]
InvalidFormDefinitionNumber = 4502,
/// <summary>
/// Invalid form definition
/// </summary>
[EnumTextValue(@"Invalid form definition")]
InvalidFormDefinition = 4503,
} |