Search in sources :

Example 1 with OnSessionErrorEvent

use of org.kie.workbench.common.stunner.core.client.session.event.OnSessionErrorEvent in project kie-wb-common by kiegroup.

the class ClientSessionManagerImpl method handleCommandError.

@Override
public void handleCommandError(final CommandException ce) {
    super.handleCommandError(ce);
    sessionErrorEvent.fire(new OnSessionErrorEvent(current, new ClientRuntimeError("Error while executing command.", ce)));
}
Also used : OnSessionErrorEvent(org.kie.workbench.common.stunner.core.client.session.event.OnSessionErrorEvent) ClientRuntimeError(org.kie.workbench.common.stunner.core.client.service.ClientRuntimeError)

Example 2 with OnSessionErrorEvent

use of org.kie.workbench.common.stunner.core.client.session.event.OnSessionErrorEvent in project kie-wb-common by kiegroup.

the class ClientSessionManagerImpl method handleClientError.

@Override
public void handleClientError(final ClientRuntimeError error) {
    super.handleClientError(error);
    sessionErrorEvent.fire(new OnSessionErrorEvent(current, error));
}
Also used : OnSessionErrorEvent(org.kie.workbench.common.stunner.core.client.session.event.OnSessionErrorEvent)

Aggregations

OnSessionErrorEvent (org.kie.workbench.common.stunner.core.client.session.event.OnSessionErrorEvent)2 ClientRuntimeError (org.kie.workbench.common.stunner.core.client.service.ClientRuntimeError)1