MockHero

error_value

Chaos Testing

Generate error-inducing values like NaN, undefined, null, Infinity. For testing error handling, type coercion, and defensive programming.

Example Outputs

NaNundefinednullInfinity-Infinity

API Usage

Send a POST request to generate error value data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "error_value",
          "type": "error_value"
        }
      ]
    }
  ]
}'

Common Use Cases

  • Error handling testing
  • Type coercion testing
  • Defensive programming validation
  • Edge case testing

Quick Info

Field Type
error_value
Category
Chaos Testing
Parameters
None required
Output Format
JSON, CSV, SQL

Try it now

Generate error value data instantly in the playground.

Generate Error Value + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free