Class EssMcpResult

java.lang.Object
com.appliedolap.essbase.EssMcpResult

public final class EssMcpResult extends Object
What a tool call came back with.

A failure is not an exception here. The MCP endpoint answers HTTP 200 with isError: true and the reason as text, so the reason is ordinary content and treating it as a transport failure would throw away the only description of what went wrong.

  • Constructor Details

    • EssMcpResult

      public EssMcpResult(boolean error, String text)
  • Method Details

    • isError

      public boolean isError()
    • getText

      public String getText()
      Whatever the tool returned - usually JSON, and on failure a message.
    • toString

      public String toString()
      Overrides:
      toString in class Object