Interface ExceptionContext.Key

All Known Implementing Classes:
SymfonionExceptionThrower.Key
Enclosing interface:
ExceptionContext<K extends ExceptionContext.Key>

public static interface ExceptionContext.Key

An interface for keys to be used for ExceptionContext.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default Class<?>
    Returns a class expected for a value to be associated with this key.
  • Method Details

    • expectedClass

      default Class<?> expectedClass()

      Returns a class expected for a value to be associated with this key.

      Returns:
      Expected class for the value.