Class DomainException
- Namespace
- Savvyio.Domain
- Assembly
- Savvyio.Core.dll
The exception that is thrown when a domain model is not in a valid state.
public class DomainException : Exception, ISerializable
- Inheritance
-
ObjectExceptionDomainException
- Implements
-
ISerializable
- Inherited Members
-
Exception.GetBaseException()Exception.GetType()Exception.ToString()Exception.DataException.HelpLinkException.HResultException.InnerExceptionException.MessageException.SourceException.StackTraceException.TargetSiteException.SerializeObjectState
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)
Parameters
message
StringThe message that describes the invalid state of the domain model.
innerException
ExceptionThe exception that is the cause of the current exception.