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
public class InvalidModificationException extends Exception
Exception for bad modification of the users list.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidModificationException()
Default constructor.InvalidModificationException(Exception cause)
Constructor with a cause.InvalidModificationException(Exception cause, Map<String,Errors> 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,Errors> fields)
Constructor with a message, a cause and a set of error fieldsInvalidModificationException(String message, Map<String,Errors> fields)
Constructor with a message and error fieldsInvalidModificationException(Map<String,Errors> fields)
Constructor with error fields
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Errors>
getFieldErrors()
Get the error fieldsString
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidModificationException
public InvalidModificationException()
Default constructor.
-
InvalidModificationException
public InvalidModificationException(Map<String,Errors> fields)
Constructor with error fields- Parameters:
fields
- The fields is having errors
-
InvalidModificationException
public InvalidModificationException(String message)
Constructor with a message.- Parameters:
message
- The message.
-
InvalidModificationException
public InvalidModificationException(String message, Map<String,Errors> fields)
Constructor with a message and error fields- Parameters:
message
- the messagefields
- The fields is having errors
-
InvalidModificationException
public InvalidModificationException(Exception cause)
Constructor with a cause.- Parameters:
cause
- The cause.
-
InvalidModificationException
public InvalidModificationException(Exception cause, Map<String,Errors> fields)
Constructor with cause and error fields- Parameters:
cause
- the causefields
- The fields is having errors
-
InvalidModificationException
public InvalidModificationException(String message, Exception cause)
Constructor with a message and a cause.- Parameters:
message
- The message.cause
- The cause.
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getFieldErrors
public Map<String,Errors> getFieldErrors()
Get the error fields- Returns:
- fields as a set of ids (may be null or empty)
-
-