Skip to main content

ProhibitNullCharactersValidator

Validate that the string doesn't contain the null character.

Attributes

AttributeTypeDescription
messagestring = "Null characters are not allowed."The error message used when validation fails because a null character is detected.
codestring = "null_characters_not_allowed"The specific error code identifier used to categorize the validation failure.

Constructor

Signature

def ProhibitNullCharactersValidator(
message: string = null,
code: string = null
) - > null

Parameters

NameTypeDescription
messagestring = nullThe custom error message to be used if validation fails.
codestring = nullThe custom error code to be used if validation fails.

Signature

def ProhibitNullCharactersValidator(
message: string = null,
code: string = null
) - > null

Parameters

NameTypeDescription
messagestring = nullThe custom error message to display when a null character is detected
codestring = nullThe specific error code used for programmatic identification of the validation failure