org.codehaus.xfire
Class XFireRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.codehaus.xfire.XFireRuntimeException
All Implemented Interfaces:
Serializable

public class XFireRuntimeException
extends RuntimeException

Used for internal XFire exceptions when a fault shouldn't be returned to the service invoker.

Since:
Feb 14, 2004
Author:
Dan Diephouse
See Also:
Serialized Form

Constructor Summary
XFireRuntimeException(String message)
          Constructs a new xfire runtime exception with the specified detail message.
XFireRuntimeException(String message, Throwable cause)
          Constructs a new xfire runtime exception with the specified detail message and cause.
 
Method Summary
 String getActualMessage()
           
 Throwable getCause()
          Returns the cause of this throwable or null if the cause is nonexistent or unknown.
 String getMessage()
          Return the detail message, including the message from the nested exception if there is one.
 void prepend(String message)
           
 void printStackTrace(PrintStream s)
          Prints this throwable and its backtrace to the specified print stream.
 void printStackTrace(PrintWriter w)
          Prints this throwable and its backtrace to the specified print writer.
 void setMessage(String s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XFireRuntimeException

public XFireRuntimeException(String message)
Constructs a new xfire runtime exception with the specified detail message.

Parameters:
message - the detail message.

XFireRuntimeException

public XFireRuntimeException(String message,
                             Throwable cause)
Constructs a new xfire runtime exception with the specified detail message and cause.

Parameters:
message - the detail message.
cause - the cause.
Method Detail

getCause

public Throwable getCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Overrides:
getCause in class Throwable
Returns:
the nested cause.

getMessage

public String getMessage()
Return the detail message, including the message from the nested exception if there is one.

Overrides:
getMessage in class Throwable
Returns:
the detail message.

getActualMessage

public String getActualMessage()

printStackTrace

public void printStackTrace(PrintStream s)
Prints this throwable and its backtrace to the specified print stream.

Overrides:
printStackTrace in class Throwable
Parameters:
s - PrintStream to use for output

printStackTrace

public void printStackTrace(PrintWriter w)
Prints this throwable and its backtrace to the specified print writer.

Overrides:
printStackTrace in class Throwable
Parameters:
w - PrintWriter to use for output

prepend

public void prepend(String message)

setMessage

public void setMessage(String s)


Copyright © 2004-2013. All Rights Reserved.