Amazon DynamoDB · 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)Catch the errors a create meets, scenario 2
Used in:
- Catch the errors a create meetsCreate
- Catch an injection attemptCreate
- Set up the service from DynamoDB's tablesCreate
- Catch an injection attemptUpdate
- Set up the service from DynamoDB's tablesUpdate
- Move an item to a new keyUpdate
- Catch an injection attemptDelete
- Set up the service from DynamoDB's tablesRetrieve
- Catch an injection attemptRetrieveMultiple
- Protect paging cookiesRetrieveMultiple
- The sample application