Skip to content

Commit 88d949d

Browse files
committed
Merge branch 'release/0.37'
2 parents 1b1296f + f2c7bf9 commit 88d949d

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/*
2+
* Copyright 2015-2016 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package jp.xet.sparwings.spring.web.httpexceptions;
17+
18+
import lombok.NoArgsConstructor;
19+
20+
import org.springframework.http.HttpStatus;
21+
import org.springframework.web.bind.annotation.ResponseStatus;
22+
23+
/**
24+
* TODO for daisuke
25+
*
26+
* @since 0.37
27+
* @author daisuke
28+
*/
29+
@NoArgsConstructor
30+
@SuppressWarnings("serial")
31+
@ResponseStatus(HttpStatus.UNPROCESSABLE_ENTITY)
32+
public class HttpUnprocessableEntityException extends HttpResponseException {
33+
34+
/**
35+
* インスタンスを生成する。
36+
*
37+
* @param message 例外メッセージ
38+
* @param cause 起因例外
39+
* @since 0.37
40+
*/
41+
public HttpUnprocessableEntityException(String message, Throwable cause) {
42+
super(message, cause);
43+
}
44+
45+
/**
46+
* インスタンスを生成する。
47+
*
48+
* @param message 例外メッセージ
49+
* @since 0.37
50+
*/
51+
public HttpUnprocessableEntityException(String message) {
52+
super(message);
53+
}
54+
55+
/**
56+
* インスタンスを生成する。
57+
*
58+
* @param cause 起因例外
59+
* @since 0.37
60+
*/
61+
public HttpUnprocessableEntityException(Throwable cause) {
62+
super(cause);
63+
}
64+
}

0 commit comments

Comments
 (0)