Class ApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.github.katenachain.exceptions.ApiException
-
- All Implemented Interfaces:
Serializable
public class ApiException extends Exception
ApiException allows to wrap API errors.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiException(int code, String message)ApiException constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ApiException
public ApiException(int code, String message)ApiException constructor.- Parameters:
code-message-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-