ranjg.error package
Module contents
This package provides errors raised in ranjg modules.
- exception ranjg.error.GenerateConflictError(message: str, context: ranjg._context.GenerationContext)
Bases:
ranjg.error._generate_error.GenerateError
Conflict errors in the schema during generation
This error raises if schema conflict is occurred in generation. In other words, when no value satisfy the schema, this error is raised. However, if a conflict is discovered during the configuration of a Factory, a SchemaConflictError will be raised.
- exception ranjg.error.GenerateError(message: str, context: ranjg._context.GenerationContext)
Bases:
Exception
Errors during randomly generation.
- exception ranjg.error.InvalidSchemaError(validation_error_list: List[jsonschema.exceptions.ValidationError])
Bases:
Exception
Schema error class.
This error raises if the schema is invalid.
When the schema is valid but no value satisfy it (exp:
schema.minimum > schema.maximum
),SchemaConflictError
is raised.
- exception ranjg.error.OptionsFileIOError
Bases:
Exception
Options file error class.
This error raises if loading options file is failed.
- exception ranjg.error.SchemaConflictError(message: str, context: ranjg._context.SchemaContext)
Bases:
Exception
Conflict errors in the schema.
This error raises if the schema has conflict. In other words, when no value satisfy the schema, this error is raised.
When the schema is invalid (exp:
schema.type
is illegal string),InvalidSchemaError
is raised.
- exception ranjg.error.SchemaFileIOError
Bases:
Exception
Schema file error class.
This error raises if loading schema file is failed.