org.infoglue.cms.exception
Class Bug

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by org.infoglue.cms.exception.Bug
All Implemented Interfaces:
java.io.Serializable

public class Bug
extends java.lang.Error

Thrown to indicate that something completely unexpected has happen. If you ever feel the urge to say "ah, this could never happen, I'll skip testing...", you should probably add the test and throw a Bug if the test fails...

This is an internal error so there is no need to localize the error message.

Author:
Patrik Nyborg
See Also:
Serialized Form

Constructor Summary
Bug(java.lang.String message)
          Construct a Bug with the detailed error message.
Bug(java.lang.String message, java.lang.Throwable cause)
          Construct a Bug with the detailed error message and cause.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause of this Bug or null if the cause is nonexistent or unknown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bug

public Bug(java.lang.String message)
Construct a Bug with the detailed error message.

Parameters:
message - the detailed error message.

Bug

public Bug(java.lang.String message,
           java.lang.Throwable cause)
Construct a Bug with the detailed error message and cause.

Parameters:
message - the detailed error message.
cause - the throwable that caused this Bug to get thrown.
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the cause of this Bug or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this ConfigurationError to get thrown).

Overrides:
getCause in class java.lang.Throwable
Returns:
the cause of this Bug or null if the cause is nonexistent or unknown.


Copyright © 2005 InfoGlue.org All Rights Reserved.