Class SerializedException
java.lang.Object
org.apache.hadoop.yarn.api.records.SerializedException
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ThrowableDeserialize the exception to a new Throwable.abstract SerializedExceptiongetCause()Get the cause of this exception or null if the cause is nonexistent or unknown.abstract StringGet the detail message string of this exception.abstract StringGet the backtrace of this exception.abstract voidConstructs a newSerializedExceptionwith the specified detail message.abstract voidConstructs a newSerializedExceptionwith the specified detail message and cause.abstract voidConstructs a newSerializedExceptionwith the specified cause.static SerializedExceptiontoString()
-
Constructor Details
-
SerializedException
public SerializedException()
-
-
Method Details
-
newInstance
-
init
Constructs a newSerializedExceptionwith the specified detail message and cause.- Parameters:
message- exception detail message.cause- cause of the exception.
-
init
Constructs a newSerializedExceptionwith the specified detail message.- Parameters:
message- exception detail message.
-
init
Constructs a newSerializedExceptionwith the specified cause.- Parameters:
cause- cause of the exception.
-
getMessage
Get the detail message string of this exception.- Returns:
- the detail message string of this exception.
-
getRemoteTrace
Get the backtrace of this exception.- Returns:
- the backtrace of this exception.
-
getCause
Get the cause of this exception or null if the cause is nonexistent or unknown.- Returns:
- the cause of this exception.
-
deSerialize
Deserialize the exception to a new Throwable.- Returns:
- the Throwable form of this serialized exception.
-
toString
-