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

            exceptionMessage.ParseFromTemplatedMessage(templatedMessage);
            return(exceptionMessage);
        }
Esempio n. 2
0
 public ApiException(ApiExceptionMessage exceptionMessage)
 {
     this.ExceptionMessage = exceptionMessage;
 }