Class CommandDrivenErrorCallback

  • All Implemented Interfaces:
    org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message>

    public class CommandDrivenErrorCallback
    extends org.uberfire.ext.widgets.common.client.callbacks.HasBusyIndicatorDefaultErrorCallback
    Error Callback that allows Commands to be defined to handled Exceptions
    • Constructor Detail

      • CommandDrivenErrorCallback

        public CommandDrivenErrorCallback​(org.uberfire.ext.widgets.common.client.common.HasBusyIndicator view,
                                          Map<Class<? extends Throwable>,​org.uberfire.mvp.Command> commands)
    • Method Detail

      • error

        public boolean error​(org.jboss.errai.bus.client.api.messaging.Message message,
                             Throwable throwable)
        Specified by:
        error in interface org.jboss.errai.common.client.api.ErrorCallback<org.jboss.errai.bus.client.api.messaging.Message>
        Overrides:
        error in class org.uberfire.ext.widgets.common.client.callbacks.HasBusyIndicatorDefaultErrorCallback