Skip to content

Commit

Permalink
fix: error message in non-implemented CC parsing routines
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Oct 22, 2024
1 parent 02fced2 commit 62e6cfd
Show file tree
Hide file tree
Showing 26 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion packages/cc/src/cc/AlarmSensorCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export class AlarmSensorCCGet extends AlarmSensorCC {
public static from(_raw: CCRaw, _ctx: CCParsingContext): AlarmSensorCCGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
6 changes: 3 additions & 3 deletions packages/cc/src/cc/BarrierOperatorCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ export class BarrierOperatorCCSet extends BarrierOperatorCC {
_ctx: CCParsingContext,
): BarrierOperatorCCSet {
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -745,7 +745,7 @@ export class BarrierOperatorCCEventSignalingSet extends BarrierOperatorCC {
): BarrierOperatorCCEventSignalingSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -866,7 +866,7 @@ export class BarrierOperatorCCEventSignalingGet extends BarrierOperatorCC {
): BarrierOperatorCCEventSignalingGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/cc/src/cc/CentralSceneCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ export class CentralSceneCCConfigurationSet extends CentralSceneCC {
_ctx: CCParsingContext,
): CentralSceneCCConfigurationSet {
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
6 changes: 3 additions & 3 deletions packages/cc/src/cc/ClimateControlScheduleCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class ClimateControlScheduleCCSet extends ClimateControlScheduleCC {
_ctx: CCParsingContext,
): ClimateControlScheduleCCSet {
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -382,7 +382,7 @@ export class ClimateControlScheduleCCGet extends ClimateControlScheduleCC {
_ctx: CCParsingContext,
): ClimateControlScheduleCCGet {
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -539,7 +539,7 @@ export class ClimateControlScheduleCCOverrideSet
_ctx: CCParsingContext,
): ClimateControlScheduleCCOverrideSet {
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/cc/src/cc/ClockCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class ClockCCSet extends ClockCC {
public static from(_raw: CCRaw, _ctx: CCParsingContext): ClockCCSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
4 changes: 2 additions & 2 deletions packages/cc/src/cc/ConfigurationCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2035,7 +2035,7 @@ export class ConfigurationCCBulkSet extends ConfigurationCC {
): ConfigurationCCBulkSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -2306,7 +2306,7 @@ export class ConfigurationCCBulkGet extends ConfigurationCC {
): ConfigurationCCBulkGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
4 changes: 2 additions & 2 deletions packages/cc/src/cc/DoorLockCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ export class DoorLockCCOperationSet extends DoorLockCC {
): DoorLockCCOperationSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -1310,7 +1310,7 @@ export class DoorLockCCConfigurationSet extends DoorLockCC {
): DoorLockCCConfigurationSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/cc/src/cc/DoorLockLoggingCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export class DoorLockLoggingCCRecordGet extends DoorLockLoggingCC {
_ctx: CCParsingContext,
): DoorLockLoggingCCRecordGet {
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/cc/src/cc/EntryControlCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ export class EntryControlCCConfigurationSet extends EntryControlCC {
): EntryControlCCConfigurationSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
8 changes: 4 additions & 4 deletions packages/cc/src/cc/FirmwareUpdateMetaDataCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ export class FirmwareUpdateMetaDataCCRequestGet
): FirmwareUpdateMetaDataCCRequestGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -761,7 +761,7 @@ export class FirmwareUpdateMetaDataCCReport extends FirmwareUpdateMetaDataCC {
): FirmwareUpdateMetaDataCCReport {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -986,7 +986,7 @@ export class FirmwareUpdateMetaDataCCActivationSet
): FirmwareUpdateMetaDataCCActivationSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -1108,7 +1108,7 @@ export class FirmwareUpdateMetaDataCCPrepareGet
): FirmwareUpdateMetaDataCCPrepareGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/cc/src/cc/HumidityControlModeCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export class HumidityControlModeCCSet extends HumidityControlModeCC {
): HumidityControlModeCCSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
8 changes: 4 additions & 4 deletions packages/cc/src/cc/HumidityControlSetpointCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export class HumidityControlSetpointCCSet extends HumidityControlSetpointCC {
): HumidityControlSetpointCCSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -705,7 +705,7 @@ export class HumidityControlSetpointCCGet extends HumidityControlSetpointCC {
): HumidityControlSetpointCCGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -875,7 +875,7 @@ export class HumidityControlSetpointCCScaleSupportedGet
): HumidityControlSetpointCCScaleSupportedGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -1022,7 +1022,7 @@ export class HumidityControlSetpointCCCapabilitiesGet
): HumidityControlSetpointCCCapabilitiesGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
18 changes: 9 additions & 9 deletions packages/cc/src/cc/IrrigationCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ export class IrrigationCCSystemConfigSet extends IrrigationCC {
): IrrigationCCSystemConfigSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -2036,7 +2036,7 @@ export class IrrigationCCValveInfoGet extends IrrigationCC {
): IrrigationCCValveInfoGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -2100,7 +2100,7 @@ export class IrrigationCCValveConfigSet extends IrrigationCC {
): IrrigationCCValveConfigSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -2359,7 +2359,7 @@ export class IrrigationCCValveConfigGet extends IrrigationCC {
): IrrigationCCValveConfigGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -2411,7 +2411,7 @@ export class IrrigationCCValveRun extends IrrigationCC {
): IrrigationCCValveRun {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -2473,7 +2473,7 @@ export class IrrigationCCValveTableSet extends IrrigationCC {
): IrrigationCCValveTableSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -2610,7 +2610,7 @@ export class IrrigationCCValveTableGet extends IrrigationCC {
): IrrigationCCValveTableGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -2663,7 +2663,7 @@ export class IrrigationCCValveTableRun extends IrrigationCC {
): IrrigationCCValveTableRun {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -2716,7 +2716,7 @@ export class IrrigationCCSystemShutoff extends IrrigationCC {
): IrrigationCCSystemShutoff {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/cc/src/cc/LanguageCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class LanguageCCSet extends LanguageCC {
public static from(_raw: CCRaw, _ctx: CCParsingContext): LanguageCCSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/cc/src/cc/LockCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export class LockCCSet extends LockCC {
public static from(_raw: CCRaw, _ctx: CCParsingContext): LockCCSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
2 changes: 1 addition & 1 deletion packages/cc/src/cc/ManufacturerSpecificCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ export class ManufacturerSpecificCCDeviceSpecificGet
_ctx: CCParsingContext,
): ManufacturerSpecificCCDeviceSpecificGet {
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
4 changes: 2 additions & 2 deletions packages/cc/src/cc/MultiChannelCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ export class MultiChannelCCAggregatedMembersGet extends MultiChannelCC {
): MultiChannelCCAggregatedMembersGet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -1553,7 +1553,7 @@ export class MultiChannelCCV1Get extends MultiChannelCC {
): MultiChannelCCV1Get {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
4 changes: 2 additions & 2 deletions packages/cc/src/cc/NodeNamingCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export class NodeNamingAndLocationCCNameSet extends NodeNamingAndLocationCC {
): NodeNamingAndLocationCCNameSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -398,7 +398,7 @@ export class NodeNamingAndLocationCCLocationSet
): NodeNamingAndLocationCCLocationSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
6 changes: 3 additions & 3 deletions packages/cc/src/cc/ProtectionCC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ export class ProtectionCCSet extends ProtectionCC {
public static from(_raw: CCRaw, _ctx: CCParsingContext): ProtectionCCSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -797,7 +797,7 @@ export class ProtectionCCExclusiveControlSet extends ProtectionCC {
): ProtectionCCExclusiveControlSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down Expand Up @@ -889,7 +889,7 @@ export class ProtectionCCTimeoutSet extends ProtectionCC {
): ProtectionCCTimeoutSet {
// TODO: Deserialize payload
throw new ZWaveError(
`${this.constructor.name}: deserialization not implemented`,
`${this.name}: deserialization not implemented`,
ZWaveErrorCodes.Deserialization_NotImplemented,
);

Expand Down
Loading

0 comments on commit 62e6cfd

Please sign in to comment.