Class FeatureDisabledException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ForkingDisabledException, IncompatibleApplicationModeException, PersonalRepositoryDisabledException, PullRequestDeletionDisabledException

public class FeatureDisabledException extends ServiceException
Base class for exceptions thrown when attempts are made to use features which have been disabled.

Some features, like forking or uploading attachments, can be globally (or specifically) disabled by administrators. User interface cues for disabled features are hidden, but API methods and REST endpoints cannot be. When an attempt is made to access a disabled feature, subclasses of this exception will be thrown.

See Also:
  • Constructor Details

    • FeatureDisabledException

      public FeatureDisabledException(@Nonnull KeyedMessage message)