Package org.ametys.plugins.core.user
Class ImportUsers.ImportUserActionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.ametys.plugins.core.user.ImportUsers.ImportUserActionException
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ImportUsers
private static class ImportUsers.ImportUserActionException extends Exception
Internal exception to throw with a i18n message
-
-
Field Summary
Fields Modifier and Type Field Description private String
_errorName
private I18nizableText
_i18nizableText
-
Constructor Summary
Constructors Constructor Description ImportUserActionException(String i18nkey, String errorName)
Create an exception with a messageImportUserActionException(String i18nkey, String errorName, List<String> params)
Create an exception with a parametrized message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorName()
Get the technical error nameI18nizableText
getI18nizableText()
Get the I18nizableText-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
_i18nizableText
private I18nizableText _i18nizableText
-
_errorName
private String _errorName
-
-
Constructor Detail
-
ImportUserActionException
public ImportUserActionException(String i18nkey, String errorName, List<String> params)
Create an exception with a parametrized message- Parameters:
i18nkey
- i18n keyerrorName
- technical error nameparams
- parameters
-
ImportUserActionException
public ImportUserActionException(String i18nkey, String errorName)
Create an exception with a message- Parameters:
i18nkey
- i18n keyerrorName
- technical error name
-
-
Method Detail
-
getI18nizableText
public I18nizableText getI18nizableText()
Get the I18nizableText- Returns:
- I18nizableText representing the error message
-
getErrorName
public String getErrorName()
Get the technical error name- Returns:
- technical error name
-
-