Skip navigation links

Oracle® Database XStream Java API Reference
11g Release 2 (11.2)

E16674-02


oracle.streams
Class StreamsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.streams.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:

See Also:
Serialized Form

Constructor Summary
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
 int getErrorCode()
          Gets the Oracle-specific error code.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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.

Skip navigation links

Oracle® Database XStream Java API Reference
11g Release 2 (11.2)

E16674-02


Copyright © 2009, 2010, Oracle and/or its affiliates. All Rights Reserved.