Package oracle.streams
Class StreamsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- 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:
- 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.
-
-
-
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.
-
-