Artifact Content
Not logged in

Artifact eeb183bdfd735385b36d62c18fab272835b79da2:


package org.interledger.ilp.client.exceptions;

public class DataModelTranslationException extends RuntimeException {

  private static final long serialVersionUID = -8868217143062192982L;

  private Object model;

  public DataModelTranslationException(String message, Object sourceModel) {
    super(message);
    model = sourceModel;
  }

  public DataModelTranslationException(String message, Object sourceModel, Exception cause) {
    super(message, cause);
    model = sourceModel;
  }

  public Object getSourceModel() {
    return model;
  }

}