Package ru.funsys.avalanche.rs
Class RestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jakarta.ws.rs.WebApplicationException
-
- ru.funsys.avalanche.rs.RestException
-
- All Implemented Interfaces:
Serializable
public class RestException extends jakarta.ws.rs.WebApplicationException
- Author:
- Валерий Лиховских
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestException(String errorCode, Object[] parameters)
RestException(String errorCode, Object[] parameters, String lang)
RestException(String errorCode, Object[] parameters, String lang, int status)
RestException(String errorCode, Object[] parameters, Throwable throwable, String lang)
RestException(String errorCode, Object[] parameters, Throwable throwable, String lang, int status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
String
getLang()
String
getLocalizedMessage()
String
getMessage()
int
getStatus()
void
setLang(String lang)
void
setStatus(int status)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getLang
public String getLang()
-
setLang
public void setLang(String lang)
-
setStatus
public void setStatus(int status)
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classThrowable
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getCode
public String getCode()
-
getStatus
public int getStatus()
-
-