File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed
spar-wings-httpexceptions/src/main/java/jp/xet/sparwings/spring/web/httpexceptions Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments