|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.NullPointerException
oracle.javatools.util.NullArgumentException
public class NullArgumentException
Thrown to indicate that a null argument has been passed to a method that requires a non-null argument. Convention dictates that a NullPointerException be thrown in this case. This subclass of NullPointerException allows this case of a null argument to be distinguished from a NullPointerException within the method that is not related to a null argument. This distinction may be useful, for example, to an automatic bug filer so it can file the bug against the caller of the method, rather than against the method itself.
| Constructor Summary | |
|---|---|
NullArgumentException()Constructs an instance with no detail message. |
|
NullArgumentException(java.lang.String message)Constructs an instance with a detail message. |
|
NullArgumentException(java.lang.String message, int apiDepth)Construct an instance with a detail message and API depth. |
|
| Method Summary | |
|---|---|
int |
getApiDepth()Get the API depth of this exception. |
| 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 NullArgumentException(java.lang.String message,
int apiDepth)
message - the messageapiDepth - the stack depth of the callerpublic NullArgumentException(java.lang.String message)
message - the detail messagepublic NullArgumentException()
| Method Detail |
|---|
public int getApiDepth()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||