# PodDefinitionValidationException constructor

PodDefinitionValidationException(

1. String? message, [
2. Throwable? cause

])

Exception thrown when a pod definition is invalid during validation.

This exception is useful in dependency injection containers or frameworks where pod definitions (such as configuration metadata) must meet specific requirements. If validation fails, this exception is raised to indicate what went wrong.

Example usage:

    void validatePodDefinition(String name, Map<String, dynamic> definition) {
      if (!definition.containsKey('type')) {
        throw PodDefinitionValidationException(
          'Missing required "type" property for pod: $name',
        );
      }
    }

    void main() {
      try {
        validatePodDefinition('myService', {});
      } catch (e) {
        print(e);
        // Output: PodDefinitionValidationException: Missing required "type" property for pod: myService
      }
    }

Creates a new PodDefinitionValidationException with a `message` describing the validation failure and an optional `cause` indicating the underlying error.

## Implementation

    PodDefinitionValidationException(super.message, [super.cause]);