001package io.ebean.enhance.common; 002 003/** 004 * When classpath issue means a common superclass can not be determined 005 * this captures the types involved. 006 */ 007public class CommonSuperUnresolved { 008 009 private final String type1; 010 private final String type2; 011 private final String error; 012 013 public CommonSuperUnresolved(String type1, String type2, String error) { 014 this.type1 = type1; 015 this.type2 = type2; 016 this.error = error; 017 } 018 019 @Override 020 public String toString() { 021 return error; 022 } 023 024 public String getType1() { 025 return type1; 026 } 027 028 public String getType2() { 029 return type2; 030 } 031 032 public String getError() { 033 return error; 034 } 035 036 public String getMessage() { 037 return "defaulted common supertype for type1:" + type1 + " type2:" + type2 + " due to err:" + error; 038 } 039}