org.hibernate.search.exception.impl
Class SingleErrorContext

java.lang.Object
  extended by org.hibernate.search.exception.impl.SingleErrorContext
All Implemented Interfaces:
ErrorContext

public class SingleErrorContext
extends Object
implements ErrorContext

Simplest implementation of an ErrorContext, use it to wrap single exceptions in the backend which are hard to relate to the workqueue as a whole.

Since:
3.3
Author:
Sanne Grinovero

Constructor Summary
SingleErrorContext(Throwable throwable)
           
 
Method Summary
 List<LuceneWork> getFailingOperations()
           
 LuceneWork getOperationAtFault()
           
 Throwable getThrowable()
           
 boolean hasErrors()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleErrorContext

public SingleErrorContext(Throwable throwable)
Method Detail

getFailingOperations

public List<LuceneWork> getFailingOperations()
Specified by:
getFailingOperations in interface ErrorContext

getOperationAtFault

public LuceneWork getOperationAtFault()
Specified by:
getOperationAtFault in interface ErrorContext

getThrowable

public Throwable getThrowable()
Specified by:
getThrowable in interface ErrorContext

hasErrors

public boolean hasErrors()
Specified by:
hasErrors in interface ErrorContext


Copyright © 2006-2010 Red Hat Middleware, LLC. All Rights Reserved