public static ApiExceptionMessage FromTemplatedMessage(string templatedMessage, int statusCode)
        {
            ApiExceptionMessage exceptionMessage = new ApiExceptionMessage {
                StatusCode = statusCode
            };

            exceptionMessage.ParseFromTemplatedMessage(templatedMessage);
            return(exceptionMessage);
        }
Пример #2
0
 public ApiException(ApiExceptionMessage exceptionMessage)
 {
     this.ExceptionMessage = exceptionMessage;
 }