Class KettleValidatorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.pentaho.di.core.exception.KettleException
org.pentaho.di.core.exception.KettleValueException
org.pentaho.di.trans.steps.validator.KettleValidatorException
- All Implemented Interfaces:
Serializable
public class KettleValidatorException
extends org.pentaho.di.core.exception.KettleValueException
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionKettleValidatorException
(Validator validator, Validation validatorField, int code, String message, String fieldname) Constructs a new Throwable with the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
void
setCode
(int code) void
setFieldname
(String fieldname) void
setValidatorField
(Validation validatorField) Methods inherited from class org.pentaho.di.core.exception.KettleException
getSuperMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_NONE
public static final int ERROR_NONE- See Also:
-
ERROR_NULL_VALUE_NOT_ALLOWED
public static final int ERROR_NULL_VALUE_NOT_ALLOWED- See Also:
-
ERROR_LONGER_THAN_MAXIMUM_LENGTH
public static final int ERROR_LONGER_THAN_MAXIMUM_LENGTH- See Also:
-
ERROR_SHORTER_THAN_MINIMUM_LENGTH
public static final int ERROR_SHORTER_THAN_MINIMUM_LENGTH- See Also:
-
ERROR_UNEXPECTED_DATA_TYPE
public static final int ERROR_UNEXPECTED_DATA_TYPE- See Also:
-
ERROR_LOWER_THAN_ALLOWED_MINIMUM
public static final int ERROR_LOWER_THAN_ALLOWED_MINIMUM- See Also:
-
ERROR_HIGHER_THAN_ALLOWED_MAXIMUM
public static final int ERROR_HIGHER_THAN_ALLOWED_MAXIMUM- See Also:
-
ERROR_VALUE_NOT_IN_LIST
public static final int ERROR_VALUE_NOT_IN_LIST- See Also:
-
ERROR_NON_NUMERIC_DATA
public static final int ERROR_NON_NUMERIC_DATA- See Also:
-
ERROR_DOES_NOT_START_WITH_STRING
public static final int ERROR_DOES_NOT_START_WITH_STRING- See Also:
-
ERROR_DOES_NOT_END_WITH_STRING
public static final int ERROR_DOES_NOT_END_WITH_STRING- See Also:
-
ERROR_STARTS_WITH_STRING
public static final int ERROR_STARTS_WITH_STRING- See Also:
-
ERROR_ENDS_WITH_STRING
public static final int ERROR_ENDS_WITH_STRING- See Also:
-
ERROR_MATCHING_REGULAR_EXPRESSION_EXPECTED
public static final int ERROR_MATCHING_REGULAR_EXPRESSION_EXPECTED- See Also:
-
ERROR_MATCHING_REGULAR_EXPRESSION_NOT_ALLOWED
public static final int ERROR_MATCHING_REGULAR_EXPRESSION_NOT_ALLOWED- See Also:
-
ERROR_ONLY_NULL_VALUE_ALLOWED
public static final int ERROR_ONLY_NULL_VALUE_ALLOWED- See Also:
-
-
Constructor Details
-
KettleValidatorException
public KettleValidatorException(Validator validator, Validation validatorField, int code, String message, String fieldname) Constructs a new Throwable with the specified detail message.- Parameters:
Validator
- - the instance of Validator that this object will reference use environmenSubsitute invokation. The class is probably where this object is being created.validatorField
- - the Validation in which the failure happened and this exception is to be created for.code
- - the error code, see the static members of this class.message
- - the detail message. The detail message is saved for later retrieval by the getMessage() method.fieldName
- - the name of the field that failed Validation.
-
-
Method Details
-
getCode
public int getCode()- Returns:
- the code
-
setCode
public void setCode(int code) - Parameters:
code
- the code to set
-
getCodeDesc
- Returns:
- the code in string format
-
getMessage
- Overrides:
getMessage
in classorg.pentaho.di.core.exception.KettleException
-
getFieldname
- Returns:
- the fieldname
-
setFieldname
- Parameters:
fieldname
- the fieldname to set
-
getValidatorField
- Returns:
- the validatorField
-
setValidatorField
- Parameters:
validatorField
- the validatorField to set
-