|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Error | +--gausssoft.lang.ImplementationError
This class is thrown to indicate a class has been programmed incorrectly, and is not safe to be used. This means that the class is not safe to be used, and should be fixed.
At construction time, you must supply the ImplementationError the object which is throwing the ImplementationError, or the class which is incorrectly programmed. You can also supply debug information at construction time, in the form of a String.
Constructor Summary | |
ImplementationError(Class clazz)
Creates a new ImplementationError, specifying the class which is incorrectly programmed. |
|
ImplementationError(Class clazz,
String debug)
Creates a new ImplementationError, specifying the class which is incorrectly programmed and debug information. |
|
ImplementationError(Object obj)
Creates a new ImplementationError, specifying the object which threw this error. |
|
ImplementationError(Object obj,
String debug)
Creates a new ImplementationError, specifying the object which threw this error and debug information. |
Method Summary | |
String |
getDebugInfo()
Returns a string containing debug information. |
Class |
getErrorClass()
Returns the class which caused an error. |
String |
getMessage()
Returns information in the form of: ClassName - DebugInfo (or
ClassName if no debug information exists). |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ImplementationError(Object obj)
An empty string will be used as the debug information.
obj
- The object which created this ImplementationError.NullPointerException
- If obj
is null
.public ImplementationError(Class clazz)
An empty string will be used as the debug information.
clazz
- The class which is incorrectly programmed.NullPointerException
- If clazz
is null
.public ImplementationError(Object obj, String debug)
obj
- The object which created this ImplementationError.debug
- A string containing debug information.NullPointerException
- If obj
or debug
is null
.public ImplementationError(Class clazz, String debug)
clazz
- The class which is incorrectly programmed.debug
- A string containing debug information.NullPointerException
- If clazz
or debug
is null
.Method Detail |
public final Class getErrorClass()
public final String getDebugInfo()
public String getMessage()
ClassName - DebugInfo
(or
ClassName
if no debug information exists).getMessage
in class Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |