Class ClassGraphException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ClassGraphException
    extends java.lang.IllegalArgumentException
    An unchecked exception that is thrown when an error state occurs or an unhandled exception is caught during scanning.

    (Extends IllegalArgumentException, which extends RuntimeException, so either of the more generic exceptions may be caught.)

    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ClassGraphException newClassGraphException​(java.lang.String message)
      Static factory method to stop IDEs from auto-completing ClassGraphException after "new ClassGraph".
      static ClassGraphException newClassGraphException​(java.lang.String message, java.lang.Throwable cause)
      Static factory method to stop IDEs from auto-completing ClassGraphException after "new ClassGraph".
      • 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
    • Method Detail

      • newClassGraphException

        public static ClassGraphException newClassGraphException​(java.lang.String message)
        Static factory method to stop IDEs from auto-completing ClassGraphException after "new ClassGraph".
        Parameters:
        message - the message
        Returns:
        the ClassGraphException
      • newClassGraphException

        public static ClassGraphException newClassGraphException​(java.lang.String message,
                                                                 java.lang.Throwable cause)
                                                          throws ClassGraphException
        Static factory method to stop IDEs from auto-completing ClassGraphException after "new ClassGraph".
        Parameters:
        message - the message
        cause - the cause
        Returns:
        the ClassGraphException
        Throws:
        ClassGraphException