# Class McpToolException.McpToolDeclarationException

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

All Implemented Interfaces:
  `Serializable`

Enclosing class:
  `McpToolException`

public static class McpToolException.McpToolDeclarationException extends McpToolException
Exception thrown when there's an error during MCP tool declaration generated.

See Also:
  - Serialized Form

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class McpToolException

  `McpToolException.McpToolDeclarationException`
  Modifier and Type
  Class
  Description
  `static class`
  `McpToolException.McpToolDeclarationException`
  Exception thrown when there's an error during MCP tool declaration generated.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `McpToolDeclarationException(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

  - ### McpToolDeclarationException

    public McpToolDeclarationException(String message, Throwable cause)