boofun.utils.exceptions.InvalidRepresentationError
- exception boofun.utils.exceptions.InvalidRepresentationError(message: str, code: ErrorCode | None = None, representation: str | None = None, available: List[str] | None = None, context: Dict[str, Any] | None = None, suggestion: str | None = None)[source]
Raised when requesting an unsupported or unknown representation.
- Raised By:
bf.create() with rep_type parameter set to unknown value
bf.BooleanFunction.get_representation() for unsupported type
Factory methods when representation cannot be determined
- Error Codes:
E1200: Generic representation error E1201: Unknown representation type E1202: Representation not available
Example
>>> f = bf.create([0, 1, 1, 0]) >>> f.get_representation("unknown_type") # Raises InvalidRepresentationError