org.firebirdsql.jca

Class FBXAException


public class FBXAException
extends XAException

Convenience exception that adds constructor taking message and error code together.
Author:
Roman Rokytskyy

Constructor Summary

FBXAException()
FBXAException(String msg)
Create a new instance of FBXAException with a given message.
FBXAException(String msg, int errorCode)
Create a new instance of FBXAException based around a message and specific error code.
FBXAException(int errorCode)
Create a new instance of FBXAException based around a specific error code.
FBXAException(int errorCode, Exception reason)
Create a new instance of FBXAException wrapped around an underlying exception.

Method Summary

String
getMessage()
Get message of this exception.
void
printStackTrace()
Print a stack trace for this exception to STDERR.
void
printStackTrace(PrintStream s)
Print a stack trace for this exception with a given PrintStream.
void
printStackTrace(PrintWriter s)
Print a stack trace for this exception with a given PrintWriter.

Constructor Details

FBXAException

public FBXAException()

FBXAException

public FBXAException(String msg)
Create a new instance of FBXAException with a given message.
Parameters:
msg - The string message for this exception

FBXAException

public FBXAException(String msg,
                     int errorCode)
Create a new instance of FBXAException based around a message and specific error code.
Parameters:
msg - The string message for this exception
errorCode - The error code for this exception

FBXAException

public FBXAException(int errorCode)
Create a new instance of FBXAException based around a specific error code.
Parameters:
errorCode - The error code for this exception

FBXAException

public FBXAException(int errorCode,
                     Exception reason)
Create a new instance of FBXAException wrapped around an underlying exception.
Parameters:
errorCode - The error code for this exception
reason - The underlying exception

Method Details

getMessage

public String getMessage()
Get message of this exception.
Returns:
combined message of this exception and original exception.

printStackTrace

public void printStackTrace()
Print a stack trace for this exception to STDERR.

printStackTrace

public void printStackTrace(PrintStream s)
Print a stack trace for this exception with a given PrintStream.
Parameters:
s - The PrintStream to which the stack trace will be written

printStackTrace

public void printStackTrace(PrintWriter s)
Print a stack trace for this exception with a given PrintWriter.
Parameters:
s - The PrintWriter to which the stack trace will be written

Copyright B) 2001 David Jencks and other authors. All rights reserved.