ManifestValidationException class
Raised when an install.yaml manifest fails schema or semantic validation.
Extends InstallException so it can be caught as part of the broader installer exception family.
Usage
throw ManifestValidationException(
'Missing required key: name.',
offendingOp: 'validate_manifest',
);
- Inheritance
-
- Object
- InstallException
- ManifestValidationException
Constructors
- ManifestValidationException(String message, {Object? offendingOp})
-
Creates a ManifestValidationException with a
messagedescribing the validation failure and an optionaloffendingOpreference.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable description of the failure.
finalinherited
- offendingOp → Object?
-
The install operation that caused this exception, or
nullwhen the failure is not tied to a specific operation.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited