public static void ThrowIf(bool condition, DomainExeptionCode code, string message = null, Exception innerException = null) { if (condition) { throw new DomainException(code, message, innerException); } }
public DomainException(DomainExeptionCode code, string message) : base(message) { Code = code; }
public DomainException(DomainExeptionCode code, string message, Exception innerException) : base(message, innerException) { Code = code; }
public DomainException(DomainExeptionCode code) { Code = code; }