|
||||||||||
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
java.lang.NullPointerException
com.bm.utils.DetailedNullPointerException
public class DetailedNullPointerException
A more detailed version of NullPointerException that contains information about what argument was null.
Constructor Summary | |
---|---|
DetailedNullPointerException(java.lang.String argumentName)
Create an instance. |
|
DetailedNullPointerException(java.lang.String argumentName,
java.lang.String message)
Create an instance. |
Method Summary | |
---|---|
java.lang.String |
getArgumentName()
Return the name of the argument that was null. |
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 DetailedNullPointerException(java.lang.String argumentName, java.lang.String message)
argumentName
- The name of the argument that was nullmessage
- The message to use in the exceptionpublic DetailedNullPointerException(java.lang.String argumentName)
argumentName
- The name of the argument that was nullMethod Detail |
---|
public java.lang.String getArgumentName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |