Skip to content

Commit 412f277

Browse files
committed
Remove use of deprecated withMessageTemplate in ValidationUtil
Signed-off-by: Florian Dupuy <[email protected]>
1 parent f50ac99 commit 412f277

File tree

6 files changed

+307
-65
lines changed

6 files changed

+307
-65
lines changed

commons/src/main/resources/com/powsybl/commons/reports.properties

+27
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,46 @@ core.iidm.modification.voltageLevelNotFound = Voltage level ${voltageLevelId} is
121121
core.iidm.modification.voltageLevelRemoved = Voltage level ${vlId} removed
122122
core.iidm.modification.voltageLevelRemovingEquipmentsLeft = Voltage level ${vlId} still contains equipments
123123
core.iidm.modification.wrongSwitchKind = Switch kinds must be DISCONNECTOR or BREAKER
124+
core.iidm.network.activePowerSetpointInvalid = active power setpoint value (${activePowerSetpoint}) is invalid
124125
core.iidm.network.alreadyConnectedTerminal = A terminal of identifiable ${identifiable} is already connected.
125126
core.iidm.network.alreadyDisconnectedTerminal = A terminal of identifiable ${identifiable} is already disconnected.
126127
core.iidm.network.export_test = Export mock
128+
core.iidm.network.hvdcConverterModeInvalid = HVDC converter mode is invalid
127129
core.iidm.network.IIDMValidation = Running validation checks on IIDM network ${networkId}
128130
core.iidm.network.importDataSource = Import data source ${dataSource}
129131
core.iidm.network.InconsistentAliasTypes = Inconsistencies of types for alias ${alias} type in dangling lines ${danglingLineId1} (type=${type1}) and ${danglingLineId2} (type=${type2}). Type is lost.
130132
core.iidm.network.InconsistentAliasValues = Inconsistencies found for alias type '${type}'('${alias1}' for '${danglingLineId1}' and '${alias2}' for '${danglingLineId2}'). Types are respectively renamed as '${type}_1' and '${type}_2'.
131133
core.iidm.network.InconsistentPropertyValues = Inconsistencies of property ${propertyName} between ${danglingLineId1} (value=${propertyValue1}) and ${danglingLineId2} (value=${propertyValue2}). Property is not added to merged line
134+
core.iidm.network.invalidP0 = p0 is invalid
135+
core.iidm.network.invalidQ0 = q0 is invalid
132136
core.iidm.network.MoveCommonAlias = Alias ${alias} found in dangling lines ${danglingLineId1} and ${danglingLineId2} is moved to their merged line.
133137
core.iidm.network.PropertyOnlyOnOneSide = Inconsistencies of property ${propertyName} between both sides (${danglingLineId1) on side 1 and ${danglingLineId2} on side2) of merged line. Side ${side} has no value. Value on other side is kept.
138+
core.iidm.network.ptcPhaseRegulationFixedMode = phase regulation cannot be on if mode is FIXED
139+
core.iidm.network.ptcPhaseRegulationModeNotSet = phase regulation mode is not set
140+
core.iidm.network.ptcPhaseRegulationNoRegulatedTerminal = phase regulation is on and regulated terminal is not set
141+
core.iidm.network.ptcPhaseRegulationRegulationValueNotSet = phase regulation is on and threshold/setpoint value is not set
142+
core.iidm.network.ptcTargetDeadbandUndefinedValue = Undefined value for target deadband of regulating phase tap changer
143+
core.iidm.network.reactivePowerSetpointInvalid = reactive power setpoint value (${reactivePowerSetpoint}) is invalid
144+
core.iidm.network.reactivePowerSetpointInvalidVoltageRegulatorOff = reactive power setpoint value (${reactivePowerSetpoint}) is invalid (voltage regulator is off)
145+
core.iidm.network.regulatingRtcNoRegulationMode = regulation mode of regulating ratio tap changer must be given
146+
core.iidm.network.regulatingRtcNoRegulationTerminal = a regulation terminal has to be set for a regulating ratio tap changer
147+
core.iidm.network.regulatingRtcNoRegulationValue = a regulation value has to be set for a regulating ratio tap changer
148+
core.iidm.network.rtcTargetDeadbandUndefinedValue = Undefined value for target deadband of regulating ratio tap changer
149+
core.iidm.network.scTargetDeadbandUndefinedValue = Undefined value for target deadband of regulating shunt compensator
150+
core.iidm.network.sectionCountUnset = count of sections in service has been unset
151+
core.iidm.network.svcRegulationModeInvalid = SVC regulation mode is invalid
152+
core.iidm.network.tapPositionIncorrect = incorrect tap position ${tapPosition} outside [${lowTapPosition}, ${highTapPosition}]
153+
core.iidm.network.tapPositionNotSet = tap position is not set
154+
core.iidm.network.tapPositionUnset = tap position has been unset
155+
core.iidm.network.temporaryLimitsButPermanentLimitUndefined = permanent limit must be defined if temporary limits are present
134156
core.iidm.network.testImportPostProcessor = testing import post processor
157+
core.iidm.network.tooManyRegulatingControlEnabled = Only one regulating control enabled is allowed
158+
core.iidm.network.undefinedLossFactor = loss factor is invalid: undefined value
159+
core.iidm.network.undefinedShuntSection = Shunt compensator: the current number of section is undefined
135160
core.iidm.network.validationWarningBothRatioPhase = ${parent} has both Ratio and Phase Tap Changer.
136161
core.iidm.network.validationWarningDuplicate = ${parent} duplicate point for active power {p}
162+
core.iidm.network.voltageSetpointInvalid = voltage setpoint value (${voltageSetpoint}) is invalid
163+
core.iidm.network.voltageSetpointInvalidVoltageRegulatorOn = voltage setpoint value (${voltageSetpoint}) is invalid (voltage regulator is on)
137164
core.iidm.serde.extensionNotFound = Extension ${extensionName} not found.
138165
core.iidm.serde.extensionsNotFound = Not found extensions
139166
core.iidm.serde.importedExtension = Extension ${extensionName} imported.

0 commit comments

Comments
 (0)