Class Message
- java.lang.Object
-
- jetbrains.buildServer.messages.serviceMessages.ServiceMessage
-
- jetbrains.buildServer.messages.serviceMessages.MessageWithAttributes
-
- jetbrains.buildServer.messages.serviceMessages.Message
-
public class Message extends MessageWithAttributes
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jetbrains.buildServer.messages.serviceMessages.ServiceMessage
ServiceMessage.Timestamp
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.messages.serviceMessages.ServiceMessage
ARG_ATTRIBUTE, DISABLE, ENABLE, PARSE_SERVICE_MESSAGES_INSIDE_TAG, SERVICE_MESSAGE_END, SERVICE_MESSAGE_START, TAGS_ATRRIBUTE, TAGS_SEPARATOR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getErrorDetails()
java.lang.String
getStatus()
java.lang.String
getText()
void
visit(ServiceMessageVisitor visitor)
Depending on this service message type calls corresponding method in the supplied visitor.-
Methods inherited from class jetbrains.buildServer.messages.serviceMessages.ServiceMessage
addTag, asString, asString, asString, getArgument, getAttributes, getAttributeValue, getCreationTimestamp, getFlowId, getMessageName, getTags, parse, parse, parseSimple, setFlowId, setTimestamp, toString, validate
-
-
-
-
Constructor Detail
-
Message
public Message(@NotNull java.lang.String text, @NotNull java.lang.String status, @Nullable java.lang.String errDetails)
-
Message
public Message(@NotNull java.lang.String text, @NotNull java.lang.Throwable throwable)
Creates error message from the specified text and exception. Status of the message is set to ERROR, exception stacktrace is serialized and is passed as errorDetails attribute.- Parameters:
text
- error messagethrowable
- exception- Since:
- 2017.2
-
-
Method Detail
-
getStatus
public java.lang.String getStatus()
-
getText
@RequiredAttribute(attributeName="text") public java.lang.String getText()
-
getErrorDetails
public java.lang.String getErrorDetails()
-
visit
public void visit(@NotNull ServiceMessageVisitor visitor)
Description copied from class:ServiceMessage
Depending on this service message type calls corresponding method in the supplied visitor.- Overrides:
visit
in classServiceMessage
- Parameters:
visitor
- visitor
-
-