Package joynr.exceptions
Class ApplicationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- joynr.exceptions.ApplicationException
-
- All Implemented Interfaces:
JoynrException,JoynrType,Serializable
public class ApplicationException extends Exception implements JoynrException
Joynr exception used to return error enums defined in the corresponding Franca model file from provider to consumer.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplicationException.JoynrErrorEnumSerializer
-
Field Summary
-
Fields inherited from interface io.joynr.exceptions.JoynrException
JSON_FIELD_NAME_MESSAGE, JSON_FIELD_NAME_TYPE
-
-
Constructor Summary
Constructors Constructor Description ApplicationException(Enum<?> error)Constructor for an ApplicationException with an error enum.ApplicationException(Enum<?> error, String message)Constructor for an ApplicationException with an error enum and detail message.ApplicationException(Enum<?> error, String message, com.fasterxml.jackson.databind.deser.std.StdDeserializer<ApplicationException> deserializer)DO NOT USE Constructor for deserializer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)<T extends Enum<?>>
TgetError()StringgetMessage()inthashCode()StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ApplicationException
public ApplicationException(Enum<?> error)
Constructor for an ApplicationException with an error enum.- Parameters:
error- error enum to be reported
-
ApplicationException
public ApplicationException(Enum<?> error, String message, com.fasterxml.jackson.databind.deser.std.StdDeserializer<ApplicationException> deserializer)
DO NOT USE Constructor for deserializer
-
-
Method Detail
-
getError
public <T extends Enum<?>> T getError()
- Type Parameters:
T- the concrete error enum type- Returns:
- the reported error enum
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceJoynrException- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceJoynrException- Overrides:
hashCodein classObject
-
-