Package org.ametys.core.user
Class InvalidModificationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.ametys.core.user.InvalidModificationException
- All Implemented Interfaces:
Serializable
Exception for bad modification of the users list.
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor.Constructor with a cause.InvalidModificationException
(Exception cause, Map<String, List<I18nizableText>> fields) Constructor with cause and error fieldsInvalidModificationException
(String message) Constructor with a message.InvalidModificationException
(String message, Exception cause) Constructor with a message and a cause.InvalidModificationException
(String message, Exception cause, Map<String, List<I18nizableText>> fields) Constructor with a message, a cause and a set of error fieldsInvalidModificationException
(String message, Map<String, List<I18nizableText>> fields) Constructor with a message and error fieldsInvalidModificationException
(Map<String, List<I18nizableText>> fields) Constructor with error fields -
Method Summary
Modifier and TypeMethodDescriptionGet the error fieldsMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidModificationException
public InvalidModificationException()Default constructor. -
InvalidModificationException
Constructor with error fields- Parameters:
fields
- The fields is having errors
-
InvalidModificationException
Constructor with a message.- Parameters:
message
- The message.
-
InvalidModificationException
Constructor with a message and error fields- Parameters:
message
- the messagefields
- The fields is having errors
-
InvalidModificationException
Constructor with a cause.- Parameters:
cause
- The cause.
-
InvalidModificationException
Constructor with cause and error fields- Parameters:
cause
- the causefields
- The fields is having errors
-
InvalidModificationException
Constructor with a message and a cause.- Parameters:
message
- The message.cause
- The cause.
-
InvalidModificationException
public InvalidModificationException(String message, Exception cause, Map<String, List<I18nizableText>> fields) Constructor with a message, a cause and a set of error fields- Parameters:
message
- The message.cause
- The cause.fields
- The fields is having errors
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getFieldErrors
Get the error fields- Returns:
- fields as a set of ids (may be null or empty)
-