iota2.common.service_error
Module defining different exception classes for iota2
Classes
|
PurePath subclass that can make system calls. |
Exceptions
|
Exception raised for configuration errors in the configuration file (like incompatible parameters) IN : msg [string] : explanation of the error |
|
Base subclass for exception in the configuration file IN : msg [string] : explanation of the error |
|
Raise if a shapefile contains at least one multipolygon |
|
Base subclass for exception in a database (SQLITE, shapefile) |
|
Exception raised for errors in mandatory directory IN : directory [string] : name of the directory |
|
Base subclass for exception in the configuration file IN : msg [string] : explanation of the error |
|
Raise if a shapefile contains duplicated features |
|
Raise if a shapefile contains empty features |
|
Raise if a shapefile contains empty geometries |
|
Raise if output features are not 2D or 3D |
|
Raise if a shapefile's field is of the wrong type. |
|
Exception raised for errors inside an input file (like a bad format or absence of a variable) IN : msg [string] : explanation of the error |
|
Base class for exceptions in iota2 chain |
Base subclass for exception in the configuration file IN : msg [string] : explanation of the error |
|
|
Raise if a geometry in a shapefile is invalid |
|
Raise if the provided projection isn't valid (None, not the expected one ...) |
|
Raise if a field is missing in a shapefile |
|
Raise if a file's name doesn't follow a specific convention |
|
Raise if NN constructor arguments not the expected ones. |
|
Raise if an SQLITE file is corrupted |
Exceptions thrown when the number of columns inside the learning samples file is too high. |
|
|
Raise if some regions are too small |
- exception iota2.common.service_error.ConfigError(msg)[source]
Exception raised for configuration errors in the configuration file (like incompatible parameters) IN :
msg [string] : explanation of the error
- exception iota2.common.service_error.ConfigFileError(msg)[source]
Base subclass for exception in the configuration file IN :
msg [string] : explanation of the error
- exception iota2.common.service_error.ContainsMultipolygon(msg)[source]
Raise if a shapefile contains at least one multipolygon
- exception iota2.common.service_error.DataBaseError(msg)[source]
Base subclass for exception in a database (SQLITE, shapefile)
- exception iota2.common.service_error.DirError(directory)[source]
Exception raised for errors in mandatory directory IN :
directory [string] : name of the directory
- exception iota2.common.service_error.DirectoryError(directory_path)[source]
Base subclass for exception in the configuration file IN :
msg [string] : explanation of the error
- exception iota2.common.service_error.DuplicatedFeatures(msg)[source]
Raise if a shapefile contains duplicated features
- exception iota2.common.service_error.EmptyFeatures(msg)[source]
Raise if a shapefile contains empty features
- exception iota2.common.service_error.EmptyGeometry(msg)[source]
Raise if a shapefile contains empty geometries
- exception iota2.common.service_error.FeaturesShapeError(shape)[source]
Raise if output features are not 2D or 3D
- exception iota2.common.service_error.FieldType(input_vector, data_field, expected_type)[source]
Raise if a shapefile’s field is of the wrong type.
- Parameters:
input_vector (
Path|str) – Shapefile pathdata_field (
str) – Current field typeexpected_type (
type) – Expected field type
- exception iota2.common.service_error.FileError(msg)[source]
Exception raised for errors inside an input file (like a bad format or absence of a variable) IN :
msg [string] : explanation of the error
- exception iota2.common.service_error.IntersectionError[source]
Base subclass for exception in the configuration file IN :
msg [string] : explanation of the error
- exception iota2.common.service_error.InvalidGeometry(msg)[source]
Raise if a geometry in a shapefile is invalid
- exception iota2.common.service_error.InvalidProjection(msg)[source]
Raise if the provided projection isn’t valid (None, not the expected one …)
- exception iota2.common.service_error.MissingField(database_path, missing_field)[source]
Raise if a field is missing in a shapefile
- Parameters:
database_path (
Path|str) – Database pathmissing_field (
str) – Missing field
- exception iota2.common.service_error.NamingConvention(msg)[source]
Raise if a file’s name doesn’t follow a specific convention
- exception iota2.common.service_error.NeuralNetworkConstructorError(expected_args, current_args)[source]
Raise if NN constructor arguments not the expected ones.
- Parameters:
expected_args (
list[str]) – Expected argumentscurrent_args (
list[str]) – Current (wrong) arguments
- exception iota2.common.service_error.SqliteCorrupted(journalsqlite_path)[source]
Raise if an SQLITE file is corrupted
- exception iota2.common.service_error.TooManyColumnsError[source]
Exceptions thrown when the number of columns inside the learning samples file is too high.
- exception iota2.common.service_error.TooSmallRegion(input_vector, area_threshold, nb_too_small_geoms)[source]
Raise if some regions are too small
- Parameters:
input_vector (
Path|str) – Input shapefilearea_threshold (
float) – Fixed threshold for regions’ areanb_too_small_geoms (
int) – Number of regions that are smaller than the threshold