Package org.bgerp.app.exception
Class BGMessageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.bgerp.app.exception.BGMessageException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BGIllegalArgumentException
,BGMessageExceptionTransparent
Localized message, shown to end user and not written in log.
- See Also:
-
Constructor Summary
ConstructorDescriptionBGMessageException
(String pattern, Object... args) Constructor with default kernel + plugin localizer.BGMessageException
(Localizer lInternal, String pattern, Object... args) Constructor with internal localizer. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Provides exception's message with substituted pattern, but without localization likegetMessage(Localizer)
does.Provides exception's message with substituted pattern, but without localization likegetMessage(Localizer)
does.getMessage
(Localizer lExternal) Provides localized message used internal localizedlInternal
, case if exists, orlExternal
.int
hashCode()
toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
BGMessageException
Constructor with default kernel + plugin localizer.- Parameters:
pattern
- message pattern.args
- message arguments.
-
BGMessageException
Constructor with internal localizer.- Parameters:
lInternal
- internal localizer.pattern
- message pattern.args
- message arguments.
-
-
Method Details
-
getMessage
Provides localized message used internal localizedlInternal
, case if exists, orlExternal
.- Parameters:
lExternal
- external localizer.- Returns:
-
getLocalizedMessage
Provides exception's message with substituted pattern, but without localization likegetMessage(Localizer)
does. The method should not be normally called, produces WARN to log output.- Overrides:
getLocalizedMessage
in classThrowable
- Returns:
-
getMessage
Provides exception's message with substituted pattern, but without localization likegetMessage(Localizer)
does. The method should not be normally called, produces WARN to log output.- Overrides:
getMessage
in classThrowable
- Returns:
-
toString
-
hashCode
public int hashCode() -
equals
-