# rapi_error functions accept additional parameters

    Code
      rapi_error("test_context", "test message")
    Condition
      Error in `rapi_error()`:
      ! test message
      i Context: test_context

---

    Code
      rapi_error("test_context", "test message", "PARSER")
    Condition
      Error in `rapi_error()`:
      ! test message
      i Context: test_context
      i Error type: PARSER

---

    Code
      rapi_error("test_context", "test message", "PARSER", "raw message")
    Condition
      Error in `rapi_error()`:
      ! test message
      i Context: test_context
      i Error type: PARSER

---

    Code
      rapi_error("test_context", "test message", "PARSER", "raw message", list(key = "value"))
    Condition
      Error in `rapi_error()`:
      ! test message
      i Context: test_context
      i Error type: PARSER
      i key: value

