Package org.mcpjava.server
Class Cancellation.OperationCancelledException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mcpjava.server.Cancellation.OperationCancelledException
- All Implemented Interfaces:
Serializable
- Enclosing interface:
Cancellation
Exception indicating that an MCP request cannot be completed because it was cancelled by the client.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new exception with no detail message.OperationCancelledException(String message) Creates a new exception with the given detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OperationCancelledException
public OperationCancelledException()Creates a new exception with no detail message. -
OperationCancelledException
Creates a new exception with the given detail message.- Parameters:
message- the detail message
-