Class InvalidPathArgumentException
Object
Throwable
Exception
AnchorCheckedException
AnchorFriendlyCheckedException
InvalidPathArgumentException
- All Implemented Interfaces:
Serializable
,HasFriendlyErrorMessage
An exception thrown if an invalid path is inputted as an argument.
- Author:
- Owen Feehan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidPathArgumentException
(String message) Creates an exception with a custom message.InvalidPathArgumentException
(String argument, InvalidPathException exception) Creates an exception for an invalid path argument. -
Method Summary
Methods inherited from class org.anchoranalysis.core.exception.friendly.AnchorFriendlyCheckedException
friendlyMessage, friendlyMessageHierarchy, friendlyMessageHierarchy, stackTrace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidPathArgumentException
Creates an exception with a custom message.- Parameters:
message
- the error message
-
InvalidPathArgumentException
Creates an exception for an invalid path argument.- Parameters:
argument
- the invalid path argumentexception
- theInvalidPathException
that was caught
-
-
Method Details
-
toCommandLineException
Converts this exception to aCommandLineException
.- Returns:
- a new
CommandLineException
with the same message as this exception - Throws:
CommandLineException
- always thrown with this exception's message
-