@Public public class NullFieldException extends RuntimeException
null
.Constructor and Description |
---|
NullFieldException()
Constructs an
NullFieldException with null as its error detail message. |
NullFieldException(int fieldIdx)
Constructs an
NullFieldException with a default message, referring to given field
number as the null field. |
NullFieldException(int fieldIdx,
Throwable cause)
Constructs an
NullFieldException with a default message, referring to given field
number as the null field and a cause (Throwable) |
NullFieldException(String message)
Constructs an
NullFieldException with the specified detail message. |
Modifier and Type | Method and Description |
---|---|
int |
getFieldPos()
Gets the field number that was attempted to access.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NullFieldException()
NullFieldException
with null
as its error detail message.public NullFieldException(String message)
NullFieldException
with the specified detail message.message
- The detail message.public NullFieldException(int fieldIdx)
NullFieldException
with a default message, referring to given field
number as the null field.fieldIdx
- The index of the field that was null, but expected to hold a value.public NullFieldException(int fieldIdx, Throwable cause)
NullFieldException
with a default message, referring to given field
number as the null field and a cause (Throwable)fieldIdx
- The index of the field that was null, but expected to hold a value.cause
- Pass the root cause of the errorCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.