Class Message

    • 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 message
        throwable - 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 class ServiceMessage
        Parameters:
        visitor - visitor