Package com.attivio.sdk
Class AttivioRemoteException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.attivio.sdk.AttivioRemoteException
-
- All Implemented Interfaces:
java.io.Serializable
public final class AttivioRemoteException extends java.lang.Exception
An unhandled exception from a remote system.The stack trace and detail message are inherited from the passed in Throwable. The original Throwable's cause is converted to an AttivioException and stored as the AttivioRemoteException's cause.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AttivioRemoteException(java.lang.String sourceClass, java.lang.String message, java.lang.Throwable cause, java.lang.StackTraceElement[] stackTrace)
Constructor, from the details of the remote exception.AttivioRemoteException(java.lang.Throwable e)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getMessage()
java.lang.String
getSourceClass()
Get the name of the class that was the source for this RemoteThrowable.int
hashCode()
static java.lang.Exception
toRemoteException(java.lang.Throwable cause)
Convertcause
to a remote exception.
-
-
-
Constructor Detail
-
AttivioRemoteException
public AttivioRemoteException(java.lang.Throwable e)
Constructor.- Parameters:
e
- the remote exception
-
AttivioRemoteException
public AttivioRemoteException(java.lang.String sourceClass, java.lang.String message, java.lang.Throwable cause, java.lang.StackTraceElement[] stackTrace)
Constructor, from the details of the remote exception.- Parameters:
sourceClass
-message
-cause
-stackTrace
-
-
-
Method Detail
-
getSourceClass
public java.lang.String getSourceClass()
Get the name of the class that was the source for this RemoteThrowable.
-
toRemoteException
public static java.lang.Exception toRemoteException(java.lang.Throwable cause)
Convertcause
to a remote exception.This converts any exception to a representation that a client can receive.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-