psyclone.errors#
This module provides various error classes used in PSyclone
Classes#
LazyString: Utility that defers any computation associated with computing a
- class psyclone.errors.LazyString(func)[source]#
Utility that defers any computation associated with computing a string until the string is required. This is particularly useful for exceptions, where the string will typically not need to be computed unless the program is about to stop.
- Parameters:
func (function) – a function that computes a string.
- Raises:
TypeError – if the func argument is not a function.
Inheritance

Exceptions#
PSycloneError: Provides a PSyclone specific error class as a generic parent class forGenerationError: Provides a PSyclone specific error class for errors found during PSyFieldNotFoundError: Provides a PSyclone-specific error class when a field with theInternalError: PSyclone-specific exception for use when an internal error occurs (i.e.
- exception psyclone.errors.PSycloneError(value)[source]#
Provides a PSyclone specific error class as a generic parent class for all PSyclone exceptions.
- Parameters:
value (str) – the message associated with the error.
Inheritance

- exception psyclone.errors.GenerationError(value)[source]#
Provides a PSyclone specific error class for errors found during PSy code generation.
- Parameters:
value (str) – the message associated with the error.
Inheritance


