SoftNet-Consult Java Utility Library

com.softnetConsult.utils.exceptions
Class Bug

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by com.softnetConsult.utils.exceptions.Bug
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UnexpectedSwitchCase

public class Bug
extends java.lang.Error

A Throwable Error that should be thrown to report a condition that indicates that there is a bug in the program. This class exists to faciliate brievity and expressiveness of the source code.

This product includes software developed by the SoftNet-Consult Java Utility Library project and its contributors.
(http://java-tools.sourceforge.net)
Copyright (c) 2007-2008 SoftNet-Consult.
Copyright (c) 2007-2008 G. Paperin.
All rights reserved.

File: Bug.java
Library API version: "2.02"
Java compliance version: "1.5"

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following terms and conditions are met:

1. Redistributions of source code must retain the above acknowledgement of the SoftNet-Consult Java Utility Library project, the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above acknowledgement of the SoftNet-Consult Java Utility Library project, the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software or any derived software must display the following acknowledgement:
This product includes software developed by the SoftNet-Consult Java Utility Library project and its contributors.

THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version:
"2.02"
Author:
Greg Paperin (http://www.paperin.org)
See Also:
Serialized Form

Constructor Summary
Bug()
          Constructs a new Bug with null as its detail message.
Bug(java.lang.String message)
          Constructs a new Bug with the specified detail message.
Bug(java.lang.String message, java.lang.Throwable cause)
          Constructs a new Bug with the specified detail message and cause.
Bug(java.lang.Throwable cause)
          Constructs a new Bug with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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()
Constructs a new Bug with null as its detail message.

See Also:
Error.Error()

Bug

public Bug(java.lang.String message)
Constructs a new Bug with the specified detail message.

Parameters:
message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
See Also:
Error.Error(String)

Bug

public Bug(java.lang.Throwable cause)
Constructs a new Bug with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for errors that are little more than wrappers for other throwables.

Parameters:
cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
See Also:
Error.Error(Throwable)

Bug

public Bug(java.lang.String message,
           java.lang.Throwable cause)
Constructs a new Bug with the specified detail message and cause. Note that the detail message associated with cause is not automatically incorporated in this error's detail message.

Parameters:
message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
See Also:
Error.Error(String, Throwable)

SoftNet-Consult Java Utility Library is a member of SourceForge.net