org.apache.hadoop.yarn.api.records
Class SerializedException

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.SerializedException

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract class SerializedException
extends Object


Constructor Summary
SerializedException()
           
 
Method Summary
abstract  Throwable deSerialize()
          Deserialize the exception to a new Throwable.
abstract  SerializedException getCause()
          Get the cause of this exception or null if the cause is nonexistent or unknown.
abstract  String getMessage()
          Get the detail message string of this exception.
abstract  String getRemoteTrace()
          Get the backtrace of this exception.
abstract  void init(String message)
          Constructs a new SerializedException with the specified detail message.
abstract  void init(String message, Throwable cause)
          Constructs a new SerializedException with the specified detail message and cause.
abstract  void init(Throwable cause)
          Constructs a new SerializedException with the specified cause.
static SerializedException newInstance(Throwable e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializedException

public SerializedException()
Method Detail

newInstance

@InterfaceAudience.Private
@InterfaceStability.Unstable
public static SerializedException newInstance(Throwable e)

init

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void init(String message,
                                                                                Throwable cause)
Constructs a new SerializedException with the specified detail message and cause.


init

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void init(String message)
Constructs a new SerializedException with the specified detail message.


init

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void init(Throwable cause)
Constructs a new SerializedException with the specified cause.


getMessage

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract String getMessage()
Get the detail message string of this exception.

Returns:
the detail message string of this exception.

getRemoteTrace

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract String getRemoteTrace()
Get the backtrace of this exception.

Returns:
the backtrace of this exception.

getCause

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract SerializedException getCause()
Get the cause of this exception or null if the cause is nonexistent or unknown.

Returns:
the cause of this exception.

deSerialize

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract Throwable deSerialize()
Deserialize the exception to a new Throwable.

Returns:
the Throwable form of this serialized exception.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.