Package org.apache.flink.types
Class NullFieldException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.flink.types.NullFieldException
-
- All Implemented Interfaces:
Serializable
@Public public class NullFieldException extends RuntimeException
An exception specifying that a required field was not set in a record, i.e. wasnull.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullFieldException()Constructs anNullFieldExceptionwithnullas its error detail message.NullFieldException(int fieldIdx)Constructs anNullFieldExceptionwith a default message, referring to given field number as the null field.NullFieldException(int fieldIdx, Throwable cause)Constructs anNullFieldExceptionwith a default message, referring to given field number as the null field and a cause (Throwable)NullFieldException(String message)Constructs anNullFieldExceptionwith the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFieldPos()Gets the field number that was attempted to access.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NullFieldException
public NullFieldException()
Constructs anNullFieldExceptionwithnullas its error detail message.
-
NullFieldException
public NullFieldException(String message)
Constructs anNullFieldExceptionwith the specified detail message.- Parameters:
message- The detail message.
-
NullFieldException
public NullFieldException(int fieldIdx)
Constructs anNullFieldExceptionwith a default message, referring to given field number as the null field.- Parameters:
fieldIdx- The index of the field that was null, but expected to hold a value.
-
NullFieldException
public NullFieldException(int fieldIdx, Throwable cause)Constructs anNullFieldExceptionwith a default message, referring to given field number as the null field and a cause (Throwable)- Parameters:
fieldIdx- The index of the field that was null, but expected to hold a value.cause- Pass the root cause of the error
-
-