Package org.apache.flink.types
Class NullKeyFieldException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.flink.types.NullKeyFieldException
-
- All Implemented Interfaces:
Serializable
@Public public class NullKeyFieldException extends RuntimeException
An exception specifying that a required key field was not set in a record, i.e. wasnull.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullKeyFieldException()Constructs anNullKeyFieldExceptionwithnullas its error detail message.NullKeyFieldException(int fieldNumber)Constructs anNullKeyFieldExceptionwith a default message, referring to given field number as the null key field.NullKeyFieldException(String message)Constructs anNullKeyFieldExceptionwith the specified detail message.NullKeyFieldException(NullFieldException nfex)Constructs anNullKeyFieldExceptionwith a default message, referring to the field number given in theNullFieldException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFieldNumber()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
-
NullKeyFieldException
public NullKeyFieldException()
Constructs anNullKeyFieldExceptionwithnullas its error detail message.
-
NullKeyFieldException
public NullKeyFieldException(NullFieldException nfex)
Constructs anNullKeyFieldExceptionwith a default message, referring to the field number given in theNullFieldException.- Parameters:
nfex- The base exception.
-
NullKeyFieldException
public NullKeyFieldException(String message)
Constructs anNullKeyFieldExceptionwith the specified detail message.- Parameters:
message- The detail message.
-
NullKeyFieldException
public NullKeyFieldException(int fieldNumber)
Constructs anNullKeyFieldExceptionwith a default message, referring to given field number as the null key field.- Parameters:
fieldNumber- The index of the field that was null, bit expected to hold a key.
-
-