Class ToggledOffException

All Implemented Interfaces:
Serializable

public class ToggledOffException extends AppianRuntimeException
This is a marker exception that is intended to be thrown from code that requires a feature toggle to be on. Locations upstream of this should be able to gracefully handle this, i.e. this could be thrown from a JAX-RS Resource (REST Service) and AppianExceptionMapper will turn it into 403 - Forbidden since ErrorCode.FEATURE_TOGGLED_OFF is mapped to the 403 status code.
See Also:
  • Constructor Details

    • ToggledOffException

      public ToggledOffException()