Package de.mid.innovator.m2msdk.util.msg
Class Message
java.lang.Object
de.mid.innovator.m2msdk.util.msg.Message
- All Implemented Interfaces:
MessageIF,Serializable
Message with arguments and probably additional exception. The exception
itself has an object stack and a call stack. You have to create a new
instance of this class for each new message, you want to use for the logger
or in an exception. The message key is translated on demand.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalInformation(String string, String string2) voidvoidfillObjectstack(SessionInterface iSession) Fill the object stack from the progress model.getArgs()Get arguments of a single message.Get the details of a message.getKey()Get message key of a single message.getName()Get the message name, i.e.static booleanisTranslated(String iKey) voidremember()The message is stored into cache.voidtoString()static StringGet message text for message key and arguments.
-
Constructor Details
-
Message
Get message for key and arguments.- Parameters:
iKey- message keyiArgs- message arguments
-
-
Method Details
-
getArgs
Get arguments of a single message.- Returns:
- List of arguments
-
translate
Get message text for message key and arguments.- Parameters:
iKey- message keyiArgs- message arguments- Returns:
- message text
-
isTranslated
-
getDetails
Description copied from interface:MessageIFGet the details of a message.- Specified by:
getDetailsin interfaceMessageIF- Returns:
- Detailsd of error message including call stack
-
toString
-
getName
Description copied from interface:MessageIFGet the message name, i.e. description with variable arguments -
fillObjectstack
Fill the object stack from the progress model.- Parameters:
iSession- current session- Throws:
M2MException
-
getObjectstack
-
addException
-
getThrowable
-
getKey
Get message key of a single message.- Returns:
- qualified message key
-
setArg
-
remember
public void remember()Description copied from interface:MessageIFThe message is stored into cache. This is useful for messages which should be accessed later. -
addAdditionalInformation
-