// Path: cachedfield/src/main/java/com/byoutline/cachedfield/ErrorListener.java
// public interface ErrorListener {
// 
//     void valueLoadingFailed(Exception ex);
// }


import com.byoutline.cachedfield.ErrorListener;
import com.byoutline.eventcallback.IBus;
import javax.annotation.Nonnull;
package com.byoutline.ibuscachedfield.internal;



/**
 * @author Sebastian Kacprzak <sebastian.kacprzak at byoutline.com>
 */
public class IBusErrorListener implements ErrorListener {

    private final IBus bus;
    private final ErrorEvent event;

    public IBusErrorListener(@Nonnull IBus bus, @Nonnull ErrorEvent event) {
        this.bus = bus;
        this.event = event;
    }

    @Override
// Path: cachedfield/src/main/java/com/byoutline/cachedfield/ErrorListener.java
// public interface ErrorListener {
// 
//     void valueLoadingFailed(Exception ex);
// }


// Path: ibuscachedfield/src/main/java/com/byoutline/ibuscachedfield/internal/IBusErrorListener.java
import com.byoutline.cachedfield.ErrorListener;
import com.byoutline.eventcallback.IBus;
import javax.annotation.Nonnull;

package com.byoutline.ibuscachedfield.internal;



/**
 * @author Sebastian Kacprzak <sebastian.kacprzak at byoutline.com>
 */
public class IBusErrorListener implements ErrorListener {

    private final IBus bus;
    private final ErrorEvent event;

    public IBusErrorListener(@Nonnull IBus bus, @Nonnull ErrorEvent event) {
        this.bus = bus;
        this.event = event;
    }

    @Override
    public void valueLoadingFailed(Exception excptn) {