Package com.nhn.gameanvil.exceptions
Class RestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.nhn.gameanvil.exceptions.RestException
- All Implemented Interfaces:
Serializable
HTTP 에서 사용하는 예외 객체 클래스
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RestException
생성자- Parameters:
code
- 예외 코드objects
- 필요한 데이터들
-
-
Method Details
-
isSuccess
public boolean isSuccess()성공 여부를 확인- Returns:
- true 성공, false 실패
-
getCode
public int getCode()결과 코드를 반환- Returns:
- 결과 코드
-
getMessage
결과 메시지 반환- Overrides:
getMessage
in classThrowable
- Returns:
- 결과 메시지 반환
-