Class ErrorClassesJsonReader

Object
org.apache.spark.ErrorClassesJsonReader

public class ErrorClassesJsonReader extends Object
A reader to load error information from one or more JSON files. Note that, if one error appears in more than one JSON files, the latter wins. Please read common/utils/src/main/resources/error/README.md for more details.
  • Constructor Details

    • ErrorClassesJsonReader

      public ErrorClassesJsonReader(scala.collection.immutable.Seq<URL> jsonFileURLs)
  • Method Details

    • getErrorMessage

      public String getErrorMessage(String errorClass, scala.collection.immutable.Map<String,Object> messageParameters)
    • getMessageParameters

      public scala.collection.immutable.Seq<String> getMessageParameters(String errorClass)
    • getMessageTemplate

      public String getMessageTemplate(String errorClass)
    • getSqlState

      public String getSqlState(String errorClass)
    • isValidErrorClass

      public boolean isValidErrorClass(String errorClass)