Class DoNotImplementException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DoNotImplementException
    extends java.lang.RuntimeException
    This exception is used to signal that a given interface, annotated with DoNotImplement was falsely implemented by an extension.
    Since:
    4.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DoNotImplementException​(@NotNull java.lang.String implementedClass)
      Creates a new DoNotImplementException that will not contain a stacktrace.
      DoNotImplementException​(@NotNull java.lang.String implementedClass, boolean fillInStacktrace)
      Creates a new DoNotImplementException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.Throwable fillInStackTrace()  
      @NotNull java.lang.String getImplementedClass()
      Returns the name of the implemented class.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, 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

      • DoNotImplementException

        public DoNotImplementException​(@NotNull java.lang.String implementedClass,
                                       boolean fillInStacktrace)
        Creates a new DoNotImplementException.
        Parameters:
        implementedClass - The name of the implemented class.
        fillInStacktrace - Whether the created exception should fill in a stacktrace.
        Since:
        4.0.0
      • DoNotImplementException

        public DoNotImplementException​(@NotNull java.lang.String implementedClass)
        Creates a new DoNotImplementException that will not contain a stacktrace.
        Parameters:
        implementedClass - The name of the implemented class.
        Since:
        4.0.0
    • Method Detail

      • fillInStackTrace

        public @NotNull java.lang.Throwable fillInStackTrace()
        Overrides:
        fillInStackTrace in class java.lang.Throwable
      • getImplementedClass

        public @NotNull java.lang.String getImplementedClass()
        Returns the name of the implemented class.
        Returns:
        The name of the implemented class.
        Since:
        4.0.0