Package joynr.exceptions
Class MethodInvocationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.joynr.exceptions.JoynrRuntimeException
-
- joynr.exceptions.MethodInvocationException
-
- All Implemented Interfaces:
JoynrException,JoynrType,Serializable
public class MethodInvocationException extends JoynrRuntimeException
Joynr exception class to report error during method invocations (RPC) at a provider ("no such method", invalid arguments, etc.)- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface io.joynr.exceptions.JoynrException
JSON_FIELD_NAME_MESSAGE, JSON_FIELD_NAME_TYPE
-
-
Constructor Summary
Constructors Constructor Description MethodInvocationException(Exception cause)Constructor for a MethodInvocationException with detail message.MethodInvocationException(Exception cause, Version providerVersion)Constructor for a MethodInvocationException with detail message.MethodInvocationException(String message)Constructor for a MethodInvocationException with detail message.MethodInvocationException(String message, Version providerVersion)Constructor for a MethodInvocationException with detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)VersiongetProviderVersion()Gets the version of the provider which could not handle the method invocationinthashCode()StringtoString()-
Methods inherited from class io.joynr.exceptions.JoynrRuntimeException
getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
MethodInvocationException
public MethodInvocationException(String message)
Constructor for a MethodInvocationException with detail message.- Parameters:
message- further description of the reported invocation error
-
MethodInvocationException
public MethodInvocationException(Exception cause)
Constructor for a MethodInvocationException with detail message.- Parameters:
cause- exception that caused the method invocation exception
-
MethodInvocationException
public MethodInvocationException(String message, Version providerVersion)
Constructor for a MethodInvocationException with detail message.- Parameters:
message- further description of the reported invocation errorproviderVersion- the version of the provider which could not handle the method invocation
-
MethodInvocationException
public MethodInvocationException(Exception cause, Version providerVersion)
Constructor for a MethodInvocationException with detail message.- Parameters:
cause- exception that caused the method invocation exceptionproviderVersion- the version of the provider which could not handle the method invocation
-
-
Method Detail
-
getProviderVersion
public Version getProviderVersion()
Gets the version of the provider which could not handle the method invocation- Returns:
- the version of the provider which could not handle the method invocation
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceJoynrException- Overrides:
equalsin classJoynrRuntimeException
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceJoynrException- Overrides:
hashCodein classJoynrRuntimeException
-
-