Class StreamsException

  • All Implemented Interfaces:
    java.io.Serializable

    public class StreamsException
    extends java.lang.Exception
    The StreamsException class provides information about Oracle Streams errors. Each StreamsException may have the following information:
    • A string describing the error. This is used as the Java Exception message, available through the method getMesage().
    • An integer error code that is specific to Oracle Streams or underlying Oracle database, available via the method getErrorCode().
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamsException​(java.lang.String message)
      Constructs a StreamsException object with message only.
      StreamsException​(java.lang.String message, int errorCode)
      Constructs a StreamsException object with message and error code.
      StreamsException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a StreamsException object with message and cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()
      Gets the Oracle-specific error code.
      • Methods inherited from class java.lang.Throwable

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

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

      • StreamsException

        public StreamsException​(java.lang.String message)
        Constructs a StreamsException object with message only.
        Parameters:
        message - A string describing the error.
      • StreamsException

        public StreamsException​(java.lang.String message,
                                int errorCode)
        Constructs a StreamsException object with message and error code.
        Parameters:
        message - A string describing the error.
        errorCode - An integer error code.
      • StreamsException

        public StreamsException​(java.lang.String message,
                                java.lang.Throwable cause)
        Constructs a StreamsException object with message and cause.
        Parameters:
        message - A string describing the error.
        cause - The cause of this StreamsException.
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Gets the Oracle-specific error code.
        This method is used to obtain an Oracle Streams error code or a database internal error code.
        Returns:
        An integer identifies the Oracle Streams specific error.