Package dev.tachyonmcp.api.server.domain
Class InvalidArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
dev.tachyonmcp.api.server.domain.InvalidArgumentException
- All Implemented Interfaces:
Serializable
Thrown when a method argument cannot be decoded or validated.
The dispatcher maps this exception to an invalid-params JSON-RPC error response
rather than an internal failure.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidArgumentException(String argName, String message) Constructs a newInvalidArgumentException.InvalidArgumentException(String argName, String message, Throwable cause) Constructs a newInvalidArgumentExceptionwith a cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidArgumentException
Constructs a newInvalidArgumentException.- Parameters:
argName- the name of the invalid argumentmessage- the detail message
-
InvalidArgumentException
Constructs a newInvalidArgumentExceptionwith a cause.- Parameters:
argName- the name of the invalid argumentmessage- the detail messagecause- the cause
-
-
Method Details
-
argName
Returns the name of the invalid argument.- Returns:
- the argument name
-