private static string MessageFromErrorCode(BusinessErrorCode errorCode) { switch (errorCode) { case BusinessErrorCode.InvalidOrUnapprovableSampleMetadataFieldName: return ""; } return errorCode.ToString(); }
public BusinessException(string message, BusinessErrorCode errorCode) : base(message) { this._error = message; this._errorCode = errorCode; }
public BusinessLogicException(BusinessErrorCode errorCode) : base(MessageFromErrorCode(errorCode)) { this.ErrorCode = errorCode; }
public BusinessException(string message, BusinessErrorCode code) : base(message) { ErrorCode = code; }