/** * Explicitly declare the given interface among the ones this * class implements. */ public void addDeclaredInterface(Class<?> iface) { if (iface == null || !iface.isInterface()) throw new MetaDataException(_loc.get("declare-non-interface", this, iface)); if (_interfaces == null) _interfaces = new ArrayList<Class<?>>(); _interfaces.add(iface); }
public MetaDataException(Message msg) { super(msg); setFatal(true); }
oid.getConstructor((Class[]) null); } catch (Exception e) { throw new MetaDataException(_loc.get("null-cons", oid, _type)). setCause(e); throw new MetaDataException(_loc.get("eq-method", _type)); throw new MetaDataException(_loc.get("hc-method", _type));
throw new MetaDataException(_loc.get("no-oid-meta", oid, "?", _oids.toString())); if (oid == null) return null; throw new MetaDataException(_loc.get("no-oid-meta", oid, oid.getClass(), _oids)); return null; throw new MetaDataException(_loc.get("no-oid-meta", oid, oid.getClass(), _oids)).setFailedObject(oid);
re = _errs.get(0); } else { re = new MetaDataException(_loc.get("resolve-errs")) .setNestedThrowables((Throwable[]) _errs .toArray(new Exception[_errs.size()]));
public void installStrategy(Version version) { VersionStrategy strat = repos.namedStrategy(version); if (strat == null) strat = repos.defaultStrategy(version, true); try { version.setStrategy(strat, Boolean.TRUE); } catch (MetaDataException mde) { // if this is a custom strategy, don't attempt to override if (isCustomStrategy(strat)) throw mde; repos.getLog().warn(_loc.get("fatal-change", version, mde.getMessage())); version.clearMapping(); version.setStrategy(repos.defaultStrategy(version, true), Boolean.TRUE); } }
oid.getConstructor((Class[]) null); } catch (Exception e) { throw new MetaDataException(_loc.get("null-cons", oid, _type)). setCause(e); throw new MetaDataException(_loc.get("eq-method", _type)); throw new MetaDataException(_loc.get("hc-method", _type));
throw new MetaDataException(_loc.get("no-oid-meta", oid, "?", _oids.toString())); if (oid == null) return null; throw new MetaDataException(_loc.get("no-oid-meta", oid, oid.getClass(), _oids)); return null; throw new MetaDataException(_loc.get("no-oid-meta", oid, oid.getClass(), _oids)).setFailedObject(oid);
re = _errs.get(0); } else { re = new MetaDataException(_loc.get("resolve-errs")) .setNestedThrowables((Throwable[]) _errs .toArray(new Exception[_errs.size()]));
public void installStrategy(Version version) { VersionStrategy strat = repos.namedStrategy(version); if (strat == null) strat = repos.defaultStrategy(version, true); try { version.setStrategy(strat, Boolean.TRUE); } catch (MetaDataException mde) { // if this is a custom strategy, don't attempt to override if (isCustomStrategy(strat)) throw mde; repos.getLog().warn(_loc.get("fatal-change", version, mde.getMessage())); version.clearMapping(); version.setStrategy(repos.defaultStrategy(version, true), Boolean.TRUE); } }
oid.getConstructor((Class[]) null); } catch (Exception e) { throw new MetaDataException(_loc.get("null-cons", oid, _type)). setCause(e); throw new MetaDataException(_loc.get("eq-method", _type)); throw new MetaDataException(_loc.get("hc-method", _type));
private ClassMetaData metasPutInternal(Class<?> cls, ClassMetaData meta){ if (_pawares.containsKey(cls)) throw new MetaDataException(_loc.get("pc-and-aware", cls)); _metas.put(cls, meta); return meta; }
throw new MetaDataException(_loc.get("no-oid-meta", oid, "?", _oids.toString())); if (oid == null) return null; throw new MetaDataException(_loc.get("no-oid-meta", oid, oid.getClass(), _oids)); return null; throw new MetaDataException(_loc.get("no-oid-meta", oid, oid.getClass(), _oids)).setFailedObject(oid);
re = _errs.get(0); } else { re = new MetaDataException(_loc.get("resolve-errs")) .setNestedThrowables((Throwable[]) _errs .toArray(new Exception[_errs.size()]));
public void installStrategy(Version version) { VersionStrategy strat = repos.namedStrategy(version); if (strat == null) strat = repos.defaultStrategy(version, true); try { version.setStrategy(strat, Boolean.TRUE); } catch (MetaDataException mde) { // if this is a custom strategy, don't attempt to override if (isCustomStrategy(strat)) throw mde; repos.getLog().warn(_loc.get("fatal-change", version, mde.getMessage())); version.clearMapping(); version.setStrategy(repos.defaultStrategy(version, true), Boolean.TRUE); } }
public MetaDataException(String msg) { super(msg); setFatal(true); }
oid.getConstructor((Class[]) null); } catch (Exception e) { throw new MetaDataException(_loc.get("null-cons", oid, _type)). setCause(e); throw new MetaDataException(_loc.get("eq-method", _type)); throw new MetaDataException(_loc.get("hc-method", _type));
/** * Assert that the given table is non-null. */ private static void assertTable(MetaDataContext context, Table table) { if (table == null) throw new MetaDataException(_loc.get("unmapped", context)); }
throw new MetaDataException(_loc.get("no-oid-meta", oid, "?", _oids.toString())); if (oid == null) return null; throw new MetaDataException(_loc.get("no-oid-meta", oid, oid.getClass(), _oids)); return null; throw new MetaDataException(_loc.get("no-oid-meta", oid, oid.getClass(), _oids)).setFailedObject(oid);
re = _errs.get(0); } else { re = new MetaDataException(_loc.get("resolve-errs")) .setNestedThrowables((Throwable[]) _errs .toArray(new Exception[_errs.size()]));