Class ParseUserNameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cz.metacentrum.perun.core.api.exceptions.rt.PerunRuntimeException
cz.metacentrum.perun.core.api.exceptions.InternalErrorException
cz.metacentrum.perun.core.api.exceptions.IllegalArgumentException
cz.metacentrum.perun.core.api.exceptions.ParseUserNameException
- All Implemented Interfaces:
Serializable
This exception is thrown when there is missing important part after parsing user name. Mandatory parts of user name
in perun is "first name" and "last name".
- Author:
- Michal Stava stavamichal@gmail.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseUserNameException(String message) Simple constructor with a messageParseUserNameException(String message, String unparsedName) Constructor with a message and unparsed user name. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the unparsed namevoidsetUnparsedName(String unparsedName) Setter for the unparsed nameMethods inherited from class cz.metacentrum.perun.core.api.exceptions.rt.PerunRuntimeException
getErrorId, getMessage, getTypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseUserNameException
Simple constructor with a message- Parameters:
message- message with details about the cause
-
ParseUserNameException
Constructor with a message and unparsed user name.- Parameters:
message- message with details about the causeunparsedName- name in raw format before parsing
-
-
Method Details
-
getUnparsedName
Getter for the unparsed name- Returns:
- unparsed name in raw text format
-
setUnparsedName
Setter for the unparsed name- Parameters:
unparsed- name in raw text format
-