Class DomainException
The exception that is thrown when a domain model is not in a valid state.
public class DomainException : Exception, ISerializable
- Inheritance
-
objectDomainException
- Implements
- Inherited Members
Constructors
DomainException()
Initializes a new instance of the DomainException class.
public DomainException()
DomainException(Exception)
Initializes a new instance of the DomainException class.
public DomainException(Exception innerException)
Parameters
innerException
ExceptionThe exception that is the cause of the current exception.
DomainException(string, Exception)
Initializes a new instance of the DomainException class.
public DomainException(string message, Exception innerException = null)