MySQL · Types · Errors
ArxErrorCategory
Definition
- Namespace
ARX.SDK- Package
ARX.SDK
public enum ArxErrorCategoryThe category of an ArxErrorCode, given by its thousands digit.
Values
Validation= 1ARX refused the call before sending it: invalid input, a misused connection, transaction or batch scope, or a name that looks like SQL injection.
NotFound= 2The rows the call addressed weren't found as asked: none, several where one was required, or one at another version than the call carried (ARX2004). Nothing was changed.
Constraint= 3The database refused the change because of a rule: a unique key, a foreign key, NOT NULL, CHECK, or a routine's own error.
Data= 4A value doesn't fit its column: out of range, too long, in the wrong format or of the wrong type.
Schema= 5A table or column doesn't exist, or a declaration in the schema catalog doesn't match the table.
Permission= 6The database user isn't allowed to do it.
Transient= 7A temporary failure: a deadlock, a conflict, a timeout, throttling or a lost connection. Safe to retry the whole operation (
IsTransientis true).NotSupported= 8The provider can't do what was asked, and refuses it rather than ignoring part of it.
Provider= 9A database error ARX doesn't map; the exception keeps its native code and SQLSTATE.
Usage
A line from a verified sample; the full, runnable code is on its page.
catch (ArxDatabaseException error) when (error.Category == ArxErrorCategory.Constraint)Catch an error by its code, scenario 2
Used in: