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 StringgetErrorDetails()StringgetStatus()StringgetText()voidvisit(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 String text, @NotNull 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 String getStatus()
-
getText
@RequiredAttribute(attributeName="text") public String getText()
-
getErrorDetails
public String getErrorDetails()
-
visit
public void visit(@NotNull ServiceMessageVisitor visitor)Description copied from class:ServiceMessageDepending on this service message type calls corresponding method in the supplied visitor.- Overrides:
visitin classServiceMessage- Parameters:
visitor- visitor
-
-