Exception: Sashite::Ggn::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Sashite::Ggn::ValidationError
- Defined in:
- lib/sashite/ggn/validation_error.rb
Overview
Custom exception class for GGN validation and processing errors.
This exception is raised when GGN documents fail validation against the JSON Schema, contain malformed data, or encounter processing errors during parsing and evaluation of pseudo-legal moves.
Since GGN focuses exclusively on board-to-board transformations, validation errors typically relate to:
-
Invalid board position representations
-
Malformed GAN identifiers or square labels
-
Logical contradictions in require/prevent conditions
-
Missing or invalid perform actions
Common scenarios that raise ValidationError:
-
Invalid JSON syntax in GGN files
-
Schema validation failures (missing required fields, invalid patterns)
-
File system errors (file not found, permission denied)
-
Malformed GAN identifiers or square labels
-
Logical contradictions in require/prevent conditions
-
Invalid board transformation specifications