Class ServerTransportSecurityException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.modelcontextprotocol.server.transport.ServerTransportSecurityException
All Implemented Interfaces:
Serializable

public class ServerTransportSecurityException extends Exception
Exception thrown when security validation fails for an HTTP request. Contains HTTP status code and message.
Author:
Daniel Garnier-Moiroux
See Also:
  • Constructor Details

    • ServerTransportSecurityException

      public ServerTransportSecurityException(int statusCode, String message)
      Creates a new ServerTransportSecurityException with the specified HTTP status code and message.
  • Method Details

    • getStatusCode

      public int getStatusCode()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object