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.ExceptionAn 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 booleanequals(java.lang.Object obj)java.lang.StringgetMessage()java.lang.StringgetSourceClass()Get the name of the class that was the source for this RemoteThrowable.inthashCode()static java.lang.ExceptiontoRemoteException(java.lang.Throwable cause)Convertcauseto 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)
Convertcauseto a remote exception.This converts any exception to a representation that a client can receive.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-