Package org.eclipse.xtext.service
Class OperationCanceledManager
- java.lang.Object
-
- org.eclipse.xtext.service.OperationCanceledManager
-
public class OperationCanceledManager extends java.lang.ObjectA facade for managing and working with cancellation exceptions of different platforms.- Since:
- 2.8
-
-
Constructor Summary
Constructors Constructor Description OperationCanceledManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ErrorasWrappingOperationCanceledException(java.lang.Throwable throwable)voidcheckCanceled(org.eclipse.xtext.util.CancelIndicator indicator)protected java.lang.RuntimeExceptiongetPlatformOperationCanceledException(java.lang.Throwable t)protected java.lang.RuntimeExceptiongetPlatformSpecificOperationCanceledException()booleanisOperationCanceledException(java.lang.Throwable t)voidpropagateAsErrorIfCancelException(java.lang.Throwable t)Rethrows OperationCanceledErrors and wraps platform specific OperationCanceledExceptions.voidpropagateIfCancelException(java.lang.Throwable t)Re-throws platform specific OperationCanceledExceptions and unwraps OperationCanceledErrors.voidthrowOperationCanceledException()
-
-
-
Method Detail
-
getPlatformOperationCanceledException
protected java.lang.RuntimeException getPlatformOperationCanceledException(java.lang.Throwable t)
-
isOperationCanceledException
public boolean isOperationCanceledException(java.lang.Throwable t)
-
propagateAsErrorIfCancelException
public void propagateAsErrorIfCancelException(java.lang.Throwable t)
Rethrows OperationCanceledErrors and wraps platform specific OperationCanceledExceptions. Does nothing for any other type of Throwable.
-
propagateIfCancelException
public void propagateIfCancelException(java.lang.Throwable t)
Re-throws platform specific OperationCanceledExceptions and unwraps OperationCanceledErrors. Does nothing for any other type of Throwable.
-
asWrappingOperationCanceledException
protected java.lang.Error asWrappingOperationCanceledException(java.lang.Throwable throwable)
-
throwOperationCanceledException
public void throwOperationCanceledException()
-
getPlatformSpecificOperationCanceledException
protected java.lang.RuntimeException getPlatformSpecificOperationCanceledException()
-
checkCanceled
public void checkCanceled(org.eclipse.xtext.util.CancelIndicator indicator)
-
-