private static string MessageFromErrorCode(BusinessErrorCode errorCode)
 {
     switch (errorCode)
     {
         case BusinessErrorCode.InvalidOrUnapprovableSampleMetadataFieldName:
             return "";
     }
     return errorCode.ToString();
 }
예제 #2
0
        public BusinessException(string message, BusinessErrorCode errorCode) : base(message)
        {
            this._error = message;

            this._errorCode = errorCode;
        }
 public BusinessLogicException(BusinessErrorCode errorCode)
     : base(MessageFromErrorCode(errorCode))
 {
     this.ErrorCode = errorCode;
 }
예제 #4
0
 public BusinessException(string message, BusinessErrorCode code)
     : base(message)
 {
     ErrorCode = code;
 }