Package xyz.juandiii.commons.exception
Class ServiceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- xyz.juandiii.commons.exception.ServiceException
-
- All Implemented Interfaces:
Serializable
public class ServiceException extends RuntimeException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description StringmessageintstatusCode
-
Constructor Summary
Constructors Constructor Description ServiceException()ServiceException(String message, int status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()intgetStatusCode()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
message
public String message
-
statusCode
public int statusCode
-
-
Constructor Detail
-
ServiceException
public ServiceException()
-
ServiceException
public ServiceException(String message, int status)
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-