public class InvalidUC4NameException extends RuntimeException
getInvalidName() method returns and the
invalid name.| Constructor and Description |
|---|
InvalidUC4NameException(String invalidName)
Constructs an
InvalidUC4NameException using the specified name. |
InvalidUC4NameException(String invalidName,
String allowedCharacters,
int maxLength)
Constructs an
InvalidUC4NameException using the specified name. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAllowedCharacters()
Returns the allowed characters.
|
String |
getInvalidName()
Returns the invalid name.
|
int |
getMaxLength()
Returns the maximal allowed length of the name or zero if no restriction is set.
|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidUC4NameException(String invalidName)
InvalidUC4NameException using the specified name.invalidName - namepublic InvalidUC4NameException(String invalidName, 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 String getMessage()
getMessage in class Throwablepublic String getInvalidName()
public String getAllowedCharacters()
public int getMaxLength()
Copyright © 2021. All rights reserved.