Class TApplicationException

All Implemented Interfaces:
Serializable, TSerializable

public class TApplicationException extends TException implements TSerializable
Application level exception
See Also:
  • Field Details

  • Constructor Details

    • TApplicationException

      public TApplicationException()
    • TApplicationException

      public TApplicationException(int type)
    • TApplicationException

      public TApplicationException(int type, String message)
    • TApplicationException

      public TApplicationException(String message)
  • Method Details

    • getType

      public int getType()
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • read

      public void read(TProtocol iprot) throws TException
      Description copied from interface: TSerializable
      Reads the TObject from the given input protocol.
      Specified by:
      read in interface TSerializable
      Parameters:
      iprot - Input protocol
      Throws:
      TException - if there is an error reading from iprot
    • readFrom

      public static TApplicationException readFrom(TProtocol iprot) throws TException
      Convenience factory method for constructing a TApplicationException given a TProtocol input
      Parameters:
      iprot - protocol from which an instance of TApplicationException is read.
      Returns:
      an instance of TApplicationException read from iprot.
      Throws:
      TException - if there is an error reading from iprot.
    • write

      public void write(TProtocol oprot) throws TException
      Description copied from interface: TSerializable
      Writes the objects out to the protocol
      Specified by:
      write in interface TSerializable
      Parameters:
      oprot - Output protocol
      Throws:
      TException - if there is an error writing to oprot