コード例 #1
0
        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;
 }