Class NoSuchExtensionException

    • Constructor Summary

      Constructors 
      Constructor Description
      NoSuchExtensionException​(java.lang.Class<?> extensionClass)
      Creates an instance with an extension type and the default message.
      NoSuchExtensionException​(java.lang.Class<?> extensionClass, java.lang.String message)
      Creates an instance with an extension type and a custom message.
      NoSuchExtensionException​(java.lang.Class<?> extensionClass, java.lang.String message, java.lang.Throwable cause)
      Creates an instance with an extension type and a custom message.
      NoSuchExtensionException​(java.lang.Class<?> extensionClass, java.lang.Throwable cause)
      Creates an instance with an extension type and the default message.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String formatMessage​(java.lang.Class<?> extensionClass, java.lang.String formatString)  
      • Methods inherited from class java.lang.Throwable

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

      • NoSuchExtensionException

        public NoSuchExtensionException​(java.lang.Class<?> extensionClass)
        Creates an instance with an extension type and the default message.
        Parameters:
        extensionClass - The extension type. Can be null.
      • NoSuchExtensionException

        public NoSuchExtensionException​(java.lang.Class<?> extensionClass,
                                        java.lang.String message)
        Creates an instance with an extension type and a custom message.
        Parameters:
        message - The message format for the exception. Must contain exactly one %s placeholder for the extension class name.
        extensionClass - The extension type. Can be null.
      • NoSuchExtensionException

        public NoSuchExtensionException​(java.lang.Class<?> extensionClass,
                                        java.lang.Throwable cause)
        Creates an instance with an extension type and the default message.
        Parameters:
        extensionClass - The extension type. Can be null.
        cause - A throwable that caused this exception.
      • NoSuchExtensionException

        public NoSuchExtensionException​(java.lang.Class<?> extensionClass,
                                        java.lang.String message,
                                        java.lang.Throwable cause)
        Creates an instance with an extension type and a custom message.
        Parameters:
        message - The message format for the exception. Must contain exactly one %s placeholder for the extension class name.
        extensionClass - The extension type. Can be null.
        cause - A throwable that caused this exception.
    • Method Detail

      • formatMessage

        private static java.lang.String formatMessage​(java.lang.Class<?> extensionClass,
                                                      java.lang.String formatString)