public class RemoteException extends BaseException
RemoteException
is the common superclass for a number of
communication-related exceptions that may occur during the execution of a
remote method call.Modifier and Type | Field and Description |
---|---|
Throwable |
detail
The cause of the remote exception.
|
Constructor and Description |
---|
RemoteException()
Constructs a
RemoteException . |
RemoteException(ErrorCode errorCode)
Constructs a
RemoteException . |
RemoteException(ErrorCode errorCode,
String message)
Constructs a
RemoteException with the specified
detail message. |
RemoteException(ErrorCode errorCode,
String message,
Throwable cause)
Constructs a
RemoteException with the specified detail
message and cause. |
RemoteException(String message)
Constructs a
RemoteException with the specified
detail message. |
RemoteException(String message,
Throwable cause)
Constructs a
RemoteException with the specified detail
message and cause. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the cause of this exception.
|
String |
getMessage()
Returns the detail message, including the message from the cause, if
any, of this exception.
|
getErrorCode
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Throwable detail
This field predates the general-purpose exception chaining facility.
The Throwable.getCause()
method is now the preferred means of
obtaining this information.
public RemoteException()
RemoteException
.public RemoteException(String message)
RemoteException
with the specified
detail message.message
- the detail messagepublic RemoteException(String message, Throwable cause)
RemoteException
with the specified detail
message and cause. This constructor sets the detail
field to the specified Throwable
.message
- the detail messagecause
- the causepublic RemoteException(ErrorCode errorCode)
RemoteException
.errorCode
- Remote exception error codepublic RemoteException(ErrorCode errorCode, String message)
RemoteException
with the specified
detail message.errorCode
- Remote exception error codemessage
- the detail messagepublic RemoteException(ErrorCode errorCode, String message, Throwable cause)
RemoteException
with the specified detail
message and cause. This constructor sets the detail
field to the specified Throwable
.errorCode
- Remote exception error codemessage
- the detail messagecause
- the causepublic String getMessage()
getMessage
in class Throwable
Copyright © 2005-2020 HID Global Corporation/ASSA ABLOY AB.