Skip to content

More specific error message for sensi faillure cause by bad user parameters #1315

@benoitflo

Description

@benoitflo

Describe the current behavior

When given a transformer that is not a phase shifter in entry the sensitivity computation rightfully fails returning the following message : com.powsybl.commons.PowsyblException: Two windings transformer is not a phase shifter

Describe the expected behavior

It would be nice to inform the user that there is a issue in the computation parameters.
Something like : Two windings transformer is not a phase shifter, it cannot be used as a TRANSFORMER_PHASE variable

Describe the motivation

This will be more helpful for users

Extra Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions