DthingApi
Public Member Functions | List of all members
java.lang.NullPointerException Class Reference
Inheritance diagram for java.lang.NullPointerException:
java.lang.RuntimeException java.lang.Exception java.lang.Throwable

Public Member Functions

 NullPointerException ()
 
 NullPointerException (String detailMessage)
 
- Public Member Functions inherited from java.lang.RuntimeException
 RuntimeException ()
 
 RuntimeException (String detailMessage)
 
- Public Member Functions inherited from java.lang.Exception
 Exception ()
 
 Exception (String detailMessage)
 
- Public Member Functions inherited from java.lang.Throwable
 Throwable ()
 
 Throwable (String detailMessage)
 
String getMessage ()
 
String getLocalizedMessage ()
 
void printStackTrace ()
 
String toString ()
 

Detailed Description

Thrown when a program tries to access a field or method of an object or an element of an array when there is no instance or array to use, that is if the object or array points to

null

. It also occurs in some other, less obvious circumstances, like a

throw e

statement where the Throwable reference is

null

.

Constructor & Destructor Documentation

◆ NullPointerException() [1/2]

java.lang.NullPointerException.NullPointerException ( )
inline

Constructs a new

that includes the current stack trace.

◆ NullPointerException() [2/2]

java.lang.NullPointerException.NullPointerException ( String  detailMessage)
inline

Constructs a new

with the current stack trace and the specified detail message.

Parameters
detailMessagethe detail message for this exception.

The documentation for this class was generated from the following file: