Class JsonFunctionException

All Implemented Interfaces:
Serializable

public class JsonFunctionException extends FunctionMetapathError
FOJS: Exceptions related to JSON function operations in XPath.
See Also:
  • Field Details

    • DUPLICATE_KEYS

      public static final int DUPLICATE_KEYS
      err:FOJS0003: This error is raised if the input contains duplicate keys, when the chosen policy is to reject duplicates.
      See Also:
    • INVALID_OPTION

      public static final int INVALID_OPTION
      err:FOJS0005: This error is raised if the $options map contains an invalid entry.
      See Also:
  • Constructor Details

    • JsonFunctionException

      public JsonFunctionException(int code, String message)
      Constructs a new exception with the provided code, message, and no cause.
      Parameters:
      code - the error code value
      message - the exception message
    • JsonFunctionException

      public JsonFunctionException(int code, String message, Throwable cause)
      Constructs a new exception with the provided code, message, and cause.
      Parameters:
      code - the error code value
      message - the exception message
      cause - the original exception cause
    • JsonFunctionException

      public JsonFunctionException(int code, Throwable cause)
      Constructs a new exception with the provided code, no message, and the cause.
      Parameters:
      code - the error code value
      cause - the original exception cause