Package classes
Class API_PreferabliException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- classes.API_PreferabliException
-
- All Implemented Interfaces:
java.io.Serializable
public class API_PreferabliException extends java.lang.ExceptionSome kind of error has occurred.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAPI_PreferabliException.PreferabliExceptionTypeType of error that occurred.
-
Constructor Summary
Constructors Constructor Description API_PreferabliException(API_PreferabliException.PreferabliExceptionType type)API_PreferabliException(API_PreferabliException.PreferabliExceptionType type, java.lang.String message)API_PreferabliException(API_PreferabliException.PreferabliExceptionType type, java.lang.String message, int code)API_PreferabliException(okhttp3.ResponseBody responseBody)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()java.lang.StringgetMessage()Get a detailed description of what went wrong.voidprintStackTrace()java.lang.StringtoString()
-
-
-
Constructor Detail
-
API_PreferabliException
public API_PreferabliException(okhttp3.ResponseBody responseBody)
-
API_PreferabliException
public API_PreferabliException(API_PreferabliException.PreferabliExceptionType type)
-
API_PreferabliException
public API_PreferabliException(API_PreferabliException.PreferabliExceptionType type, java.lang.String message)
-
API_PreferabliException
public API_PreferabliException(API_PreferabliException.PreferabliExceptionType type, java.lang.String message, int code)
-
-
Method Detail
-
getCode
public int getCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
getMessage
public java.lang.String getMessage()
Get a detailed description of what went wrong.- Overrides:
getMessagein classjava.lang.Throwable- Returns:
- a string description.
-
printStackTrace
public void printStackTrace()
- Overrides:
printStackTracein classjava.lang.Throwable
-
-