|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.marringtons.util.ProgrammingErrorException
Effective Java: Programming Language Guide by Joshua Bloch Item 40:Use checked exceptions for recoverable conditions and run-time exceptions for programming errors.
| Constructor Summary | |
ProgrammingErrorException(Object message)
When a programming error is detected in the normal course of the application - such as a an unexpected value in a method call parameter, create an exception of this type. |
|
ProgrammingErrorException(Object message,
Throwable cause)
Sometime the causing exception does not provide enough information for the developer to deduce and repair the code problem. |
|
ProgrammingErrorException(Throwable cause)
When a programming error causes a checked exception, attach it to this exception to provide additional information. |
|
| 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ProgrammingErrorException(Object message)
message - Message to attached to the stack dump (uses toString()).public ProgrammingErrorException(Throwable cause)
cause - The exception that causes the code to throw a ProgrammingErrorException.
public ProgrammingErrorException(Object message,
Throwable cause)
message - Message to attached to the stack dump.cause - The exception that causes the code to throw a ProgrammingErrorException.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||