public class InvalidUC4NameException
extends java.lang.RuntimeException
getInvalidName()
method returns and the
invalid name.Constructor and Description |
---|
InvalidUC4NameException(java.lang.String invalidName)
Constructs an
InvalidUC4NameException using the specified name. |
InvalidUC4NameException(java.lang.String invalidName,
java.lang.String allowedCharacters,
int maxLength)
Constructs an
InvalidUC4NameException using the specified name. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAllowedCharacters()
Returns the allowed characters.
|
java.lang.String |
getInvalidName()
Returns the invalid name.
|
int |
getMaxLength()
Returns the maximal allowed length of the name or zero if no restriction is set.
|
java.lang.String |
getMessage() |
public InvalidUC4NameException(java.lang.String invalidName)
InvalidUC4NameException
using the specified name.invalidName
- namepublic InvalidUC4NameException(java.lang.String invalidName, java.lang.String allowedCharacters, int maxLength)
InvalidUC4NameException
using the specified name.invalidName
- nameallowedCharacters
- allowed characters, use empty string if all characters are allowedmaxLength
- maximal allowed length, use 0 if no length restriction is givenpublic java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getInvalidName()
public java.lang.String getAllowedCharacters()
public int getMaxLength()