Package xyz.juandiii.name.exceptions
Class RequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- xyz.juandiii.name.exceptions.RequestException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadRequestException,ForbiddenException,InternalErrorException,NotAuthenticationException,NotFoundException
public class RequestException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RequestException(String message)RequestException(String message, int code)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()RequestExceptionsetCode(int code)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getCode
public int getCode()
-
setCode
public RequestException setCode(int code)
-
-