# Class McpToolsetException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.adk.tools.mcp.McpToolsetException

All Implemented Interfaces:
  `Serializable`

Direct Known Subclasses:
  `McpToolsetException.McpInitializationException, McpToolsetException.McpToolLoadingException`

public class McpToolsetException extends RuntimeException
Base exception for all errors originating from `McpToolset`.

See Also:
  - Serialized Form

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `McpToolsetException.McpInitializationException`
  Exception thrown when there's an error during MCP session initialization.
  `static class`
  `McpToolsetException.McpToolLoadingException`
  Exception thrown when there's an error during loading tools from the MCP server.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `McpToolsetException(String message, Throwable cause)`

- ## Method Summary

  ### Methods inherited from class Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### McpToolsetException

    public McpToolsetException(String message, Throwable cause)