Class ScaffoldException

All Implemented Interfaces:
Serializable

public class ScaffoldException extends RuntimeException
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 Details

    • ScaffoldException

      public ScaffoldException(String message)
      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

      public ScaffoldException(String message, Throwable cause)
      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 message
      cause - underlying exception