Tabnine Logo
ErrorHelper.findWrappedCause
Code IndexAdd Tabnine to your IDE (free)

How to use
findWrappedCause
method
in
com.dremio.common.exceptions.ErrorHelper

Best Java code snippets using com.dremio.common.exceptions.ErrorHelper.findWrappedCause (Showing top 2 results out of 315)

origin: dremio/dremio-oss

uex = ErrorHelper.findWrappedCause(cause, UserException.class);
if (uex != null) {
 this.errorType = null;
 this.cause = cause;
} else {
 OutOfMemoryException oom = ErrorHelper.findWrappedCause(cause, OutOfMemoryException.class);
 if (oom != null) {
  this.errorType = DremioPBError.ErrorType.OUT_OF_MEMORY;
origin: dremio/dremio-oss

 return descriptor.getMaterializationFor(helper.getConverter());
} catch (KryoLogicalPlanSerializers.KryoDeserializationException e) {
 final UserException uex = ErrorHelper.findWrappedCause(e, UserException.class);
 if (uex != null && uex.getErrorType() == UserBitShared.DremioPBError.ErrorType.SOURCE_BAD_STATE) {
  logger.debug("failed to expand materialization descriptor {}/{} because source is down, skip for now",
com.dremio.common.exceptionsErrorHelperfindWrappedCause

Javadoc

searches for an exception of type T wrapped inside the exception

Popular methods of ErrorHelper

  • getWrapper
  • buildCausesMessage
  • getEmptyST
  • getRootMessage
    Constructs the root error message in the form [root exception class name]: [root exception message]
  • getSTWrapper
  • getWrapperBuilder
  • include

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JButton (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now