Class UnknownException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.can019.global.exception.UnknownException
- All Implemented Interfaces:
Serializable
,org.springframework.web.ErrorResponse
public class UnknownException
extends RuntimeException
implements org.springframework.web.ErrorResponse
Fatal exception
예측하지 못한 Exception. 발생시점은 알지만 이유는 명확히 모르는 경우등 보통의 경우라면 ApplicationException을 쓰는 것을 권고.
- Since:
- 0.0.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.web.ErrorResponse
org.springframework.web.ErrorResponse.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionUnknownException
(String message) UnknownException
(String message, Throwable cause) UnknownException
(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ProblemDetail
getBody()
org.springframework.http.HttpStatusCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.web.ErrorResponse
getDetailMessageArguments, getDetailMessageArguments, getDetailMessageCode, getHeaders, getTitleMessageCode, getTypeMessageCode, updateAndGetBody
-
Constructor Details
-
UnknownException
-
UnknownException
-
UnknownException
-
-
Method Details
-
getStatusCode
public org.springframework.http.HttpStatusCode getStatusCode()- Specified by:
getStatusCode
in interfaceorg.springframework.web.ErrorResponse
-
getBody
public org.springframework.http.ProblemDetail getBody()- Specified by:
getBody
in interfaceorg.springframework.web.ErrorResponse
-