Class CausedBy

Object
org.apache.spark.util.CausedBy

public class CausedBy extends Object
Extractor Object for pulling out the root cause of an error. If the error contains no cause, it will return the error itself.

Usage: try { ... } catch { case CausedBy(ex: CommitDeniedException) => ... }

  • Constructor Details

    • CausedBy

      public CausedBy()
  • Method Details