Class CustomArgumentException
- Namespace
- adas_core.Application.Exceptions
- Assembly
- adas-core.Application.dll
Represents a custom exception that is thrown when one or more arguments provided to a method are invalid.
public class CustomArgumentException : Exception, ISerializable
- Inheritance
-
CustomArgumentException
- Implements
- Inherited Members
- Extension Methods
Remarks
This exception extends the base Exception class to provide a domain-specific error type for argument validation failures.
Constructors
CustomArgumentException(string)
Initializes a new instance of the CustomArgumentException class with a specified error message.
public CustomArgumentException(string message)
Parameters
messagestringThe error message that describes the reason for the exception.
CustomArgumentException(ErrorMessage)
Initializes a new instance of the CustomArgumentException class with the specified error message.
public CustomArgumentException(HttpEnum.ErrorMessage message)
Parameters
messageHttpEnum.ErrorMessageThe error message from the HttpEnum.ErrorMessage enumeration.