Class ScaffoldException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
network.ike.plugin.scaffold.ScaffoldException
- All Implemented Interfaces:
Serializable
Thrown when scaffold operations cannot complete: malformed
lockfile, malformed manifest, I/O failure, or invalid state
detected during draft/publish/revert.
Mojos translate this into MojoException at the plugin
boundary; the scaffold core stays Maven-agnostic.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScaffoldException(String message) Construct a scaffold exception with an explanatory message and no underlying cause.ScaffoldException(String message, Throwable cause) Construct a scaffold exception that wraps an underlying cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ScaffoldException
Construct a scaffold exception with an explanatory message and no underlying cause. Used for validation failures that have no wrapped exception — malformed manifests, unresolvable paths, missing template entries, and similar.- Parameters:
message- explanatory message; must be specific enough that a user reading the failure knows which file or operation failed
-
ScaffoldException
Construct a scaffold exception that wraps an underlying cause. Used when an I/O or parser exception must be surfaced to the caller with scaffold-level context added to the message.- Parameters:
message- explanatory messagecause- underlying exception
-