Class SerializedException

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

@Private @Unstable public abstract class SerializedException extends Object
  • Constructor Details

    • SerializedException

      public SerializedException()
  • Method Details

    • newInstance

      @Private @Unstable public static SerializedException newInstance(Throwable e)
    • init

      @Private @Unstable public abstract void init(String message, Throwable cause)
      Constructs a new SerializedException with the specified detail message and cause.
      Parameters:
      message - exception detail message.
      cause - cause of the exception.
    • init

      @Private @Unstable public abstract void init(String message)
      Constructs a new SerializedException with the specified detail message.
      Parameters:
      message - exception detail message.
    • init

      @Private @Unstable public abstract void init(Throwable cause)
      Constructs a new SerializedException with the specified cause.
      Parameters:
      cause - cause of the exception.
    • getMessage

      @Private @Unstable public abstract String getMessage()
      Get the detail message string of this exception.
      Returns:
      the detail message string of this exception.
    • getRemoteTrace

      @Private @Unstable public abstract String getRemoteTrace()
      Get the backtrace of this exception.
      Returns:
      the backtrace of this exception.
    • getCause

      @Private @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

      @Private @Unstable public abstract Throwable deSerialize()
      Deserialize the exception to a new Throwable.
      Returns:
      the Throwable form of this serialized exception.
    • toString

      public String toString()
      Overrides:
      toString in class Object