public final class ProgrammingException extends RuntimeException
| Constructor and Description |
|---|
ProgrammingException(String detectingClass,
String detectingMethod,
String subjectClass,
String subjectMethod,
String detail,
Throwable cause)
Constructs a new
ProgrammingException for the specified
class and method, indicating which class and method detected the
problem. |
| Modifier and Type | Method and Description |
|---|---|
String |
getDetail()
Returns the detail message.
|
String |
getDetectingClass()
Returns the name of the class that detected the problem.
|
String |
getDetectingMethod()
Returns the name of the method where the problem was detected.
|
String |
getSubjectClass()
Returns the name of the class which exposes the programming error.
|
String |
getSubjectMethod()
Returns the name of the method which exposes the programming error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ProgrammingException(String detectingClass, String detectingMethod, String subjectClass, String subjectMethod, String detail, Throwable cause)
ProgrammingException for the specified
class and method, indicating which class and method detected the
problem.detectingClass - the name of the class that detected the problem, or
null if unknown.detectingMethod - the name of the method within the detectingClass that
detected the problem, or null if unknown.subjectClass - the name of the class which exposes the programming error, or
null if unknown.subjectMethod - the name of the method (within the subjectClass) which
exposes the programming error, or null if unknown.detail - the detail message, can be null.cause - the cause exception, can be null.public String getDetectingClass()
null
if unknown.public String getDetectingMethod()
null if unknown.public String getSubjectClass()
null if unknown.public String getSubjectMethod()
null if unknown.public String getDetail()
null.See http://www.xins.org/.