Class SessionRejectedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.mule.runtime.api.exception.MuleException
com.mulesoft.connectors.mcp.internal.SessionRejectedException
All Implemented Interfaces:
Serializable

public class SessionRejectedException extends org.mule.runtime.api.exception.MuleException
Signals that a new session creation was rejected by the server
Since:
0.2.0
See Also:
  • Constructor Details

    • SessionRejectedException

      public SessionRejectedException(String message, int statusCode)
      Creates a new instance
      Parameters:
      message - the exception message
      statusCode - The statusCode that the server should communicate back to the client
    • SessionRejectedException

      public SessionRejectedException(String message, int statusCode, Throwable cause)
      Parameters:
      message - the exception message
      statusCode - The statusCode that the server should communicate back to the client
      cause - the exception cause
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Returns:
      The statusCode that the server should communicate back to the client