Package io.vertx.grpc.server

## Class StatusException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - io.vertx.core.VertxException
        - - io.vertx.grpc.server.StatusException

- All Implemented Interfaces:
    `Serializable`

      public final class StatusException
      extends VertxException

  A glorified GOTO forcing a response status.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `StatusException​(GrpcStatus status)` |
    `StatusException​(GrpcStatus status, String message)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `message()` |
    `GrpcStatus` | `status()` |

    - ### Methods inherited from class io.vertx.core.VertxException

      `noStackTrace, noStackTrace, noStackTrace`

    - ### 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

    - #### StatusException

          public StatusException​(GrpcStatus status)

    - #### StatusException

          public StatusException​(GrpcStatus status,
                                 String message)

  - ### Method Detail

    - #### status

          public GrpcStatus status()

      Returns:
        the status

    - #### message

          public String message()

      Returns:
        the status message