Package net.n2oapp.platform.jaxrs
Class RestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.n2oapp.platform.jaxrs.RestException
-
- All Implemented Interfaces:
Serializable
public class RestException extends RuntimeException
Исключение, выбрасываемое на клиенте при возникновении исключения в REST сервисе- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RestException(RestMessage restMessage, int responseStatus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RestMessage.Error>getErrors()StringgetMessage()intgetResponseStatus()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RestException
public RestException(RestMessage restMessage, int responseStatus)
-
-
Method Detail
-
getErrors
public List<RestMessage.Error> getErrors()
-
getResponseStatus
public int getResponseStatus()
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-