Package io.github.classgraph
Class ClassGraphException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
io.github.classgraph.ClassGraphException
- All Implemented Interfaces:
Serializable
public class ClassGraphException extends 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
Modifier and Type Method Description static ClassGraphException
newClassGraphException(String message)
Static factory method to stop IDEs from auto-completing ClassGraphException after "new ClassGraph".static ClassGraphException
newClassGraphException(String message, 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
-
Method Details
-
newClassGraphException
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(String message, Throwable cause) throws ClassGraphExceptionStatic factory method to stop IDEs from auto-completing ClassGraphException after "new ClassGraph".- Parameters:
message
- the messagecause
- the cause- Returns:
- the ClassGraphException
- Throws:
ClassGraphException
- the class graph exception
-