Table of Contents

Class UnprocessableEntityException

Namespace
adas_core.Application.Exceptions
Assembly
adas-core.Application.dll

Represents an exception that is thrown when an entity cannot be processed due to issues with its content or structure.

public class UnprocessableEntityException : Exception, ISerializable
Inheritance
UnprocessableEntityException
Implements
Inherited Members
Extension Methods

Remarks

This exception is typically used to signal that a request or entity was understood but could not be processed, similar to the semantics of an HTTP 422 (Unprocessable Entity) response.

Constructors

UnprocessableEntityException(string)

Initializes a new instance of the UnprocessableEntityException class with a specified error message.

public UnprocessableEntityException(string message)

Parameters

message string

The message that describes the error.

UnprocessableEntityException(ErrorMessage)

Initializes a new instance of the UnprocessableEntityException class with a specified error message enum.

public UnprocessableEntityException(HttpEnum.ErrorMessage message)

Parameters

message HttpEnum.ErrorMessage

The error message enum containing the error code.