|
SoftNet-Consult Java Utility Library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
com.softnetConsult.utils.exceptions.Bug
public class Bug
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.
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 |
---|
public Bug()
null
as its detail message.
Error.Error()
public Bug(java.lang.String message)
message
- The detail message
(which is saved for later retrieval by the Throwable.getMessage()
method).Error.Error(String)
public Bug(java.lang.Throwable cause)
(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.
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.)Error.Error(Throwable)
public Bug(java.lang.String message, java.lang.Throwable cause)
cause
is not automatically incorporated
in this error's detail message.
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.)Error.Error(String, Throwable)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |