Search in sources :

Example 1 with MissingExecutorException

use of org.opensmartgridplatform.adapter.protocol.dlms.exceptions.MissingExecutorException in project open-smart-grid-platform by OSGP.

the class BundleService method handleMissingExecutor.

private void handleMissingExecutor(final ActionDto action, final DlmsDevice device) {
    final Class<? extends ActionRequestDto> actionRequestClass = action.getRequest().getClass();
    log.error("bundleCommandExecutorMap in {} does not have a CommandExecutor registered for action: {}", this.getClass().getName(), actionRequestClass.getName());
    final MissingExecutorException e = new MissingExecutorException(String.format("No CommandExecutor available to handle %s", actionRequestClass.getSimpleName()));
    this.addFaultResponse(action, e, "Unable to handle request", device);
}
Also used : MissingExecutorException(org.opensmartgridplatform.adapter.protocol.dlms.exceptions.MissingExecutorException)

Aggregations

MissingExecutorException (org.opensmartgridplatform.adapter.protocol.dlms.exceptions.MissingExecutorException)1