protected final RuntimeException logAndPrepareForRethrow(final Throwable throwable) { if (!(throwable instanceof OHighLevelException || throwable instanceof ONeedRetryException)) { OLogManager.instance() .errorStorage(this, "Exception `%08X` in storage `%s`: %s", throwable, System.identityHashCode(throwable), getURL(), OConstants.getVersion()); } return new RuntimeException(throwable); }
private OInvalidIndexEngineIdException logAndPrepareForRethrow(final OInvalidIndexEngineIdException exception) { OLogManager.instance() .errorStorage(this, "Exception `%08X` in storage `%s` : %s", exception, System.identityHashCode(exception), getURL(), OConstants.getVersion()); return exception; }
protected final RuntimeException logAndPrepareForRethrow(final RuntimeException runtimeException) { if (!(runtimeException instanceof OHighLevelException || runtimeException instanceof ONeedRetryException)) { OLogManager.instance() .errorStorage(this, "Exception `%08X` in storage `%s`: %s", runtimeException, System.identityHashCode(runtimeException), getURL(), OConstants.getVersion()); } return runtimeException; }
private Error logAndPrepareForRethrow(final Error error, final boolean putInReadOnlyMode) { if (!(error instanceof OHighLevelException)) { OLogManager.instance() .errorStorage(this, "Exception `%08X` in storage `%s`: %s", error, System.identityHashCode(error), getURL(), OConstants.getVersion()); } if (putInReadOnlyMode) { handleJVMError(error); } return error; }