void throwRecordNotFoundException(final ORID identity, final String message) { if (settings.isStandardExceptions()) throw new IllegalStateException(message); else throw new ORecordNotFoundException(identity, message); }
/** * Returns true if Blueprints standard exceptions are used: * <li> * <ul> * IllegalStateException instead of ORecordNotFoundException when the record was not found * </ul> * </li> */ public boolean isStandardExceptions() { return settings.isStandardExceptions(); }