All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.cloudyrock.spring.util.events.SpringMigrationFailureEvent Maven / Gradle / Ivy

package com.github.cloudyrock.spring.util.events;

import org.springframework.context.ApplicationEvent;

public class SpringMigrationFailureEvent extends ApplicationEvent {
  private final Exception exception;

  /**
   * Create a new {@code ApplicationEvent}.
   *
   * @param source the object on which the event initially occurred or with
   *               which the event is associated (never {@code null})
   */
  public SpringMigrationFailureEvent(Object source, Exception ex) {
    super(source);
    this.exception = ex;
  }

  public Exception getException() {
    return exception;
  }

  @Override
  public String toString() {
    return "SpringMigrationFailureEvent{" +
        "exception=" + exception +
        "} " + super.toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy