Class MatchProcessorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.github.lukehutch.fastclasspathscanner.MatchProcessorException
-
- All Implemented Interfaces:
Serializable
public class MatchProcessorException extends RuntimeException
Thrown if one or more exceptions were thrown when attempting to call the classloader on a class, or if one or more exceptions were thrown by a MatchProcessor. Call getExceptions() to get the exceptions thrown.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Throwable>
getExceptions()
Get all the exceptions thrown by a MatchProcessor during the scan.static MatchProcessorException
newInstance(Throwable throwable)
Create a MatchProcessorException.static MatchProcessorException
newInstance(List<Throwable> exceptions)
Create a MatchProcessorException-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getExceptions
public List<Throwable> getExceptions()
Get all the exceptions thrown by a MatchProcessor during the scan.- Returns:
- The list of exceptions.
-
newInstance
public static MatchProcessorException newInstance(List<Throwable> exceptions)
Create a MatchProcessorException- Parameters:
exceptions
- The list of Throwables (Exceptions or Errors) that were thrown by the MatchProcessor.- Returns:
- A new MatchProcessorException.
-
newInstance
public static MatchProcessorException newInstance(Throwable throwable)
Create a MatchProcessorException.- Parameters:
throwable
- The Throwable (Exception or Error) that was thrown.- Returns:
- a new MatchProcessorException.
-
-