SQL Server · Types · Errors

ArxValidationException

Definition

Namespace
ARX.SDK
Package
ARX.SDK
C#
public sealed class ArxValidationException : ArxException

The 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

C#

A line from a verified sample; the full, runnable code is on its page.

catch (ArxValidationException error) when (error.Code == ArxErrorCode.InvalidLookup)

Create a record that points at another one, scenario 4

Used in: