MongoDB · Types · Errors
ArxValidationException
Definition
- Namespace
ARX.SDK- Package
ARX.SDK
public sealed class ArxValidationException : ArxExceptionThe caller's input is invalid. Always raised before any database access.
Constructor
ArxValidationException(ArxErrorCode code, string message, Exception? innerException = null)A request refused before anything was sent to the database.
Parameter Type Description codeArxErrorCodeThe ARX error code: its thousands digit is the category. messagestringA message for logs and developers. It names tables, columns and constraints, never values. innerExceptionException?= nullThe error that caused it, if any.
Usage
A line from a verified sample; the full, runnable code is on its page.
catch (ArxValidationException exception) when (exception.Code == ArxErrorCode.InvalidLookup)Create a record that refers to another, scenario 2
Used in:
- Create a record that refers to anotherCreate
- Catch the errors a create meetsCreate
- Catch an injection attemptCreate
- Set up the service from the database's schemaCreate
- Catch an injection attemptUpdate
- Set up the service from the database's schemaUpdate
- Catch an injection attemptDelete
- Set up the service from the database's schemaDelete
- Catch an injection attemptRetrieveMultiple
- Set up the service from the database's schemaRetrieveMultiple
- Protect paging cookiesRetrieveMultiple
- The sample application