public class FSException extends L10NMessageImpl
Modifier and Type | Field and Description |
---|---|
protected String |
_message |
protected Throwable |
rootCause |
Constructor and Description |
---|
FSException(Exception ex)
Constructor
|
FSException(String message)
Constructor
Constructs a
FSException with a detailed message. |
FSException(String errorCode,
Object[] args)
Constructor
|
FSException(String errorCode,
Object[] args,
Throwable rootCause)
Constructor
|
FSException(String rbName,
String errorCode,
Object[] args)
Constructor
This constructor is used to pass the localized error message
At this level, the locale of the caller is not known and it is
not possible to throw localized error message at this level.
|
FSException(Throwable rootCause,
String message)
Constructs a
FSException with a message and
an embedded exception. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getRootCause()
Returns the embedded exception.
|
PrintWriter |
log(PrintWriter out)
Formats this
FSException to a PrintWriter . |
static PrintWriter |
log(Throwable xcpt,
PrintWriter out)
Formats an Exception to a
PrintWriter . |
void |
printStackTrace()
Prints this exception's stack trace to System.err.
|
void |
printStackTrace(PrintStream ps)
Prints this exception's stack trace to a print stream.
|
void |
printStackTrace(PrintWriter pw)
Prints this exception's stack trace to a print writer.
|
String |
toString()
Returns a formatted
FSException exception message;
includes embedded exceptions. |
getErrorCode, getL10NMessage, getMessage, getMessageArgs, getResourceBundleName
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public FSException(String rbName, String errorCode, Object[] args)
rbName
- ResourceBundle Name to be used for getting
localized error message.errorCode
- Key to resource bundle. You can use
ResourceBundle rb = ResourceBunde.getBundle (rbName,locale);
String localizedStr = rb.getString(errorCode)args
- arguments to message. If it is not present pass the
as nullpublic FSException(String errorCode, Object[] args)
errorCode
- Key of the error message in resource bundle.args
- Arguments to the message.public FSException(String errorCode, Object[] args, Throwable rootCause)
errorCode
- Key of the error message in resource bundle.args
- Arguments to the message.rootCause
- An embedded exceptionpublic FSException(String message)
FSException
with a detailed message.message
- Detailed message for this exception.public FSException(Throwable rootCause, String message)
FSException
with a message and
an embedded exception.message
- Detailed message for this exception.rootCause
- An embedded exceptionpublic FSException(Exception ex)
ex
- an exception.public Throwable getRootCause()
public PrintWriter log(PrintWriter out)
FSException
to a PrintWriter
.out
- PrintWriter
to write exception to.PrintWriter
public static PrintWriter log(Throwable xcpt, PrintWriter out)
PrintWriter
.xcpt
- Exception
to log.out
- PrintWriter
to write exception to.PrintWriter
public String toString()
FSException
exception message;
includes embedded exceptions.public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream ps)
printStackTrace
in class Throwable
ps
- The non-null print stream to which to print.public void printStackTrace(PrintWriter pw)
printStackTrace
in class Throwable
pw
- The non-null print writer to which to print.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.