Module io.jooby
Package io.jooby

Class Usage

All Implemented Interfaces:
Serializable

public class Usage extends RuntimeException
Usage exceptions. They provide a descriptive message with a link for a detailed section.
Since:
2.1.0
See Also:
  • Constructor Details

    • Usage

      public Usage(@NonNull String message, @NonNull String id)
      Creates a new Usage exception.
      Parameters:
      message - Message.
      id - Link to detailed section.
  • Method Details

    • mvcRouterNotFound

      @NonNull public static Usage mvcRouterNotFound(@NonNull Class mvcRoute)
      Creates a mvc route missing exception.
      Parameters:
      mvcRoute - Mvc route.
      Returns:
      Usage exception.
    • parameterNameNotPresent

      @NonNull public static Usage parameterNameNotPresent(@NonNull Parameter parameter)
      Thrown when the reflective bean converter has no access to a parameter name. Compilation must be done using parameters compiler option.
      Parameters:
      parameter - Parameter.
      Returns:
      Usage exception.