Class DoNotImplementException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.hivemq.extension.sdk.api.services.exception.DoNotImplementException
- All Implemented Interfaces:
Serializable
public class DoNotImplementException extends RuntimeException
This exception is used to signal that a given interface, annotated with
DoNotImplement was falsely
implemented by an extension.- Since:
- 4.0.0, CE 2019.1
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DoNotImplementException(@NotNull String implementedClass)Creates a new DoNotImplementException that will not contain a stacktrace.DoNotImplementException(@NotNull String implementedClass, boolean fillInStacktrace)Creates a new DoNotImplementException. -
Method Summary
Modifier and Type Method Description @NotNull ThrowablefillInStackTrace()@NotNull StringgetImplementedClass()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
-
Constructor Details
-
DoNotImplementException
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, CE 2019.1
-
DoNotImplementException
Creates a new DoNotImplementException that will not contain a stacktrace.- Parameters:
implementedClass- The name of the implemented class.- Since:
- 4.0.0, CE 2019.1
-
-
Method Details
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-
getImplementedClass
Returns the name of the implemented class.- Returns:
- The name of the implemented class.
- Since:
- 4.0.0, CE 2019.1
-