Class TransportException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TransportException
    extends java.lang.Exception
    Represents a communications error originating within the SOAP transport. The native exception thrown by the SOAP transport is encapsulated within this exception.
    Author:
    David Melgar (dmelgar@us.ibm.com)
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TransportException()
      Constructs an TransportException with no specified detail message.
      TransportException​(java.lang.Exception e)
      Constructs a TransportException wrappering the native transport exception.
      TransportException​(java.lang.String s)
      Constructs a TransportException with the specified detail message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Exception getException()
      Returns the native transport exception wrappered by this class.
      void printStackTrace()
      Prints this Throwable and its backtrace to the specified print stream as well as the wrappered exception.
      void printStackTrace​(java.io.PrintStream s)
      Prints this Throwable and its backtrace to the specified print stream as well as the wrappered exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TransportException

        public TransportException()
        Constructs an TransportException with no specified detail message.
      • TransportException

        public TransportException​(java.lang.String s)
        Constructs a TransportException with the specified detail message.
        Parameters:
        s - the detail message.
      • TransportException

        public TransportException​(java.lang.Exception e)
        Constructs a TransportException wrappering the native transport exception.
        Parameters:
        e - Native exception to be wrappered
    • Method Detail

      • getException

        public java.lang.Exception getException()
        Returns the native transport exception wrappered by this class.
        Returns:
        Exception
      • printStackTrace

        public void printStackTrace()
        Prints this Throwable and its backtrace to the specified print stream as well as the wrappered exception.
        Overrides:
        printStackTrace in class java.lang.Throwable
      • printStackTrace

        public void printStackTrace​(java.io.PrintStream s)
        Prints this Throwable and its backtrace to the specified print stream as well as the wrappered exception.
        Overrides:
        printStackTrace in class java.lang.Throwable
        Parameters:
        s - PrintStream to use for output