pyorps.core.exceptions

PYORPS: An Open-Source Tool for Automated Power Line Routing

Reference: [1] Hofmann, M., Stetz, T., Kammer, F., Repo, S.: ‘PYORPS: An Open-Source Tool for

Automated Power Line Routing’, CIRED 2025 - 28th Conference and Exhibition on Electricity Distribution, 16 - 19 June 2025, Geneva, Switzerland

Exceptions for CostAssumptions

Exceptions

AlgorithmNotImplementedError(algorithm, ...)

Custom exception if a specific algorithm is not implemented in the API or the graph library

ColumnAnalysisError

Exception raised when column analysis fails

CostAssumptionsError

Base exception for CostAssumptions class.

FeatureColumnError

Base exception for feature column detection errors

FileLoadError

Exception raised when loading files fails.

FormatError

Exception raised when data format is invalid.

InvalidSourceError

Exception raised when the provided source is invalid.

NoPathFoundError(source, target[, add_message])

Custom exception if no path can be found in the graph for source and target

NoSuitableColumnsError

Exception raised when no suitable columns are found

PairwiseError()

Custom exception if pairwise computation fails

RasterShapeError(raster_shape)

Custom exception if the raster shape is not supported

WFSConnectionError

Exception raised for connection issues with WFS services.

WFSError

Base exception for WFS-related errors.

WFSLayerNotFoundError

Exception raised when a requested layer cannot be found.

WFSResponseParsingError

Exception raised when parsing WFS responses fails.

exception pyorps.core.exceptions.CostAssumptionsError[source]

Bases: Exception

Base exception for CostAssumptions class.

exception pyorps.core.exceptions.FileLoadError[source]

Bases: CostAssumptionsError

Exception raised when loading files fails.

exception pyorps.core.exceptions.InvalidSourceError[source]

Bases: CostAssumptionsError

Exception raised when the provided source is invalid.

exception pyorps.core.exceptions.FormatError[source]

Bases: CostAssumptionsError

Exception raised when data format is invalid.

exception pyorps.core.exceptions.FeatureColumnError[source]

Bases: Exception

Base exception for feature column detection errors

exception pyorps.core.exceptions.NoSuitableColumnsError[source]

Bases: FeatureColumnError

Exception raised when no suitable columns are found

exception pyorps.core.exceptions.ColumnAnalysisError[source]

Bases: FeatureColumnError

Exception raised when column analysis fails

exception pyorps.core.exceptions.WFSError[source]

Bases: Exception

Base exception for WFS-related errors.

exception pyorps.core.exceptions.WFSConnectionError[source]

Bases: WFSError

Exception raised for connection issues with WFS services.

exception pyorps.core.exceptions.WFSResponseParsingError[source]

Bases: WFSError

Exception raised when parsing WFS responses fails.

exception pyorps.core.exceptions.WFSLayerNotFoundError[source]

Bases: WFSError

Exception raised when a requested layer cannot be found.

exception pyorps.core.exceptions.RasterShapeError(raster_shape)[source]

Bases: Exception

Custom exception if the raster shape is not supported

Parameters:

raster_shape (tuple[int, ...])

Return type:

None

__init__(raster_shape)[source]
Parameters:

raster_shape (tuple[int, ...])

Return type:

None

exception pyorps.core.exceptions.NoPathFoundError(source, target, add_message='')[source]

Bases: Exception

Custom exception if no path can be found in the graph for source and target

Parameters:
  • source (int)

  • target (int)

  • add_message (str)

Return type:

None

__init__(source, target, add_message='')[source]
Parameters:
  • source (int)

  • target (int)

  • add_message (str)

Return type:

None

exception pyorps.core.exceptions.AlgorithmNotImplementedError(algorithm, graph_library)[source]

Bases: Exception

Custom exception if a specific algorithm is not implemented in the API or the graph library

Parameters:
  • algorithm (str)

  • graph_library (str)

Return type:

None

__init__(algorithm, graph_library)[source]
Parameters:
  • algorithm (str)

  • graph_library (str)

Return type:

None

exception pyorps.core.exceptions.PairwiseError[source]

Bases: Exception

Custom exception if pairwise computation fails

Return type:

None

__init__()[source]
Return type:

None