Fixed msg in case unexpected originator type
This commit is contained in:
parent
eec8bb0202
commit
ec6e2611cb
@ -32,7 +32,7 @@ public class EntitiesAlarmOriginatorIdAsyncLoader {
|
|||||||
case ALARM:
|
case ALARM:
|
||||||
return getAlarmOriginatorAsync(ctx.getAlarmService().findAlarmByIdAsync(ctx.getTenantId(), (AlarmId) original));
|
return getAlarmOriginatorAsync(ctx.getAlarmService().findAlarmByIdAsync(ctx.getTenantId(), (AlarmId) original));
|
||||||
default:
|
default:
|
||||||
return Futures.immediateFailedFuture(new TbNodeException("Unexpected original EntityType " + original));
|
return Futures.immediateFailedFuture(new TbNodeException("Unexpected original EntityType " + original.getEntityType()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -42,7 +42,7 @@ public class EntitiesCustomerIdAsyncLoader {
|
|||||||
case DEVICE:
|
case DEVICE:
|
||||||
return getCustomerAsync(ctx.getDeviceService().findDeviceByIdAsync(ctx.getTenantId(), (DeviceId) original));
|
return getCustomerAsync(ctx.getDeviceService().findDeviceByIdAsync(ctx.getTenantId(), (DeviceId) original));
|
||||||
default:
|
default:
|
||||||
return Futures.immediateFailedFuture(new TbNodeException("Unexpected original EntityType " + original));
|
return Futures.immediateFailedFuture(new TbNodeException("Unexpected original EntityType " + original.getEntityType()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@ public class EntitiesFieldsAsyncLoader {
|
|||||||
return getAsync(ctx.getEntityViewService().findEntityViewByIdAsync(ctx.getTenantId(), (EntityViewId) original),
|
return getAsync(ctx.getEntityViewService().findEntityViewByIdAsync(ctx.getTenantId(), (EntityViewId) original),
|
||||||
EntityFieldsData::new);
|
EntityFieldsData::new);
|
||||||
default:
|
default:
|
||||||
return Futures.immediateFailedFuture(new TbNodeException("Unexpected original EntityType " + original));
|
return Futures.immediateFailedFuture(new TbNodeException("Unexpected original EntityType " + original.getEntityType()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -50,7 +50,7 @@ public class EntitiesTenantIdAsyncLoader {
|
|||||||
case RULE_CHAIN:
|
case RULE_CHAIN:
|
||||||
return getTenantAsync(ctx.getRuleChainService().findRuleChainByIdAsync(ctx.getTenantId(), (RuleChainId) original));
|
return getTenantAsync(ctx.getRuleChainService().findRuleChainByIdAsync(ctx.getTenantId(), (RuleChainId) original));
|
||||||
default:
|
default:
|
||||||
return Futures.immediateFailedFuture(new TbNodeException("Unexpected original EntityType " + original));
|
return Futures.immediateFailedFuture(new TbNodeException("Unexpected original EntityType " + original.getEntityType()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user