Skip to content

Throw a more representative Exception when Auto alignment failes #266

@pascalwilbrink

Description

@pascalwilbrink

The SubstationGraphBuilder requires 2 (or 3) TransformerWindings to be present.
All these TransformerWindings require a Terminal section (+ ConnectivityNode in that Terminal Section).
When either the Terminal element, or the ConnectivityNode element is not present in the SCL file, a default exception message gets thrown (For Terminal: ArrayIndexOutOfBounds, for ConnectivityNode: NullPointer).
We should add assertions before trying to create the FeederNode:

https://github.com/com-pas/compas-scl-auto-alignment/blob/develop/service/src/main/java/org/lfenergy/compas/scl/auto/alignment/builder/SubstationGraphBuilder.java#L90

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions