Class N2oException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.n2oapp.framework.api.exception.N2oException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
N2oBusinessException,N2oMetadataValidationException,N2oUserException,NotFoundContextPlaceholderException
public class N2oException extends RuntimeException
Базовое исключение N2O- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description N2oException()N2oException(String message)N2oException(String message, Throwable cause)N2oException(Throwable cause)N2oException(Throwable cause, String alertKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description N2oExceptionaddData(Object... data)StringgetLocalizedMessage()Получить локализованное сообщение для пользователяstatic N2oExceptionwrap(Throwable e)Обернуть любое исключение вN2oException-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
wrap
public static N2oException wrap(Throwable e)
Обернуть любое исключение вN2oException- Parameters:
e- Исключение- Returns:
- Исключение N2O
-
getLocalizedMessage
public String getLocalizedMessage()
Получить локализованное сообщение для пользователя- Overrides:
getLocalizedMessagein classThrowable
-
addData
public N2oException addData(Object... data)
-
-