org.apache.tinkerpop.gremlin.server.handler

## Class SessionException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - org.apache.tinkerpop.gremlin.server.handler.SessionException

- All Implemented Interfaces:
    Serializable

      public class SessionException
      extends Exception

  An exception that holds the error-related `ResponseMessage` which is meant to be returned to the calling client.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SessionException(String message, ResponseMessage responseMessage)`
    `SessionException(String message, Throwable cause, ResponseMessage responseMessage)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ResponseMessage` | `getResponseMessage()`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SessionException

          public SessionException(String message,
                                  ResponseMessage responseMessage)

    - #### SessionException

          public SessionException(String message,
                                  Throwable cause,
                                  ResponseMessage responseMessage)

  - ### Method Detail

    - #### getResponseMessage

          public ResponseMessage getResponseMessage()

Copyright © 2013–2022 Apache Software Foundation. All rights reserved.