Package dev.hilla
Class EndpointInvocationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- dev.hilla.EndpointInvocationException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EndpointInvocationException.EndpointAccessDeniedException,EndpointInvocationException.EndpointBadRequestException,EndpointInvocationException.EndpointInternalException,EndpointInvocationException.EndpointNotFoundException
public abstract class EndpointInvocationException extends Exception
Exception thrown by EndpointInvoker when invocation fails.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEndpointInvocationException.EndpointAccessDeniedExceptionException indicating access to the endpoint was denied.static classEndpointInvocationException.EndpointBadRequestExceptionException indicating a problem with the request data.static classEndpointInvocationException.EndpointInternalExceptionException indicating an unexpected server error occured during handling of the endpoint invocation.static classEndpointInvocationException.EndpointNotFoundExceptionException indicating the endpoint was not found.
-
Constructor Summary
Constructors Constructor Description EndpointInvocationException(String errorMessage)Creates a new instance..
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Returns the additional message that is passed to the client side.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
EndpointInvocationException
public EndpointInvocationException(String errorMessage)
Creates a new instance..- Parameters:
errorMessage- an additional message passed to the client side
-
-
Method Detail
-
getMessage
public String getMessage()
Returns the additional message that is passed to the client side.- Overrides:
getMessagein classThrowable- Returns:
- the error message or
nullif no error message was provided
-
-