private MenuAlreadyExistsException(
     ExceptionCode exceptionCode,
     OperationCode operationCode,
     Guid correlationId,
     string message
     ) : base((int)exceptionCode, (int)operationCode, correlationId, message)
 {
     HttpStatusCode = (int)ExceptionCodeToHttpStatusCodeConverter.GetHttpStatusCode((int)exceptionCode);
 }
Ejemplo n.º 2
0
 public OperationFailedException(ExceptionCode exceptionCode,
                                 OperationCode operationCode,
                                 Guid correlationId,
                                 string message)
     : base((int)exceptionCode, (int)operationCode,
            correlationId,
            message)
 {
     HttpStatusCode = (int)ExceptionCodeToHttpStatusCodeConverter.GetHttpStatusCode((int)exceptionCode);
 }
 private DomainRuleViolationException(
     ExceptionCode exceptionCode,
     OperationCode operationCode,
     Guid correlationId,
     string message,
     Exception domainException
     ) : base((int)exceptionCode, (int)operationCode, correlationId, message, domainException)
 {
     HttpStatusCode = (int)ExceptionCodeToHttpStatusCodeConverter.GetHttpStatusCode((int)exceptionCode);
 }