public class RemoteException
extends java.lang.RuntimeException
Cause
objects list. Actual exception instances are included only if they
explicitly declared as available for the clients (annotated with SupportedByClient
).Modifier and Type | Class and Description |
---|---|
static class |
RemoteException.Cause |
Constructor and Description |
---|
RemoteException(java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Class<?> throwableClass)
Search for
RemoteException.Cause by its exception class. |
boolean |
contains(java.lang.String throwableClassName)
Search for
RemoteException.Cause by its exception class. |
RemoteException.Cause |
getCause(java.lang.String throwableClassName)
Search for
RemoteException.Cause by its exception class name. |
java.util.List<RemoteException.Cause> |
getCauses() |
java.lang.Exception |
getFirstCauseException() |
java.lang.String |
getMessage() |
java.lang.String |
toString() |
public java.util.List<RemoteException.Cause> getCauses()
@Nullable public RemoteException.Cause getCause(java.lang.String throwableClassName)
RemoteException.Cause
by its exception class name. Subclasses are not taken into account.throwableClassName
- exception class namepublic boolean contains(java.lang.Class<?> throwableClass)
RemoteException.Cause
by its exception class. Subclasses are not taken into account. The given class is
converted into its string name, so it doesn't matter what Cause contains - class or its name only.throwableClass
- exception classpublic boolean contains(java.lang.String throwableClassName)
RemoteException.Cause
by its exception class. Subclasses are not taken into account.throwableClassName
- exception class name@Nullable public java.lang.Exception getFirstCauseException()
@Nullable public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable