error_value
Chaos TestingGenerate error-inducing values like NaN, undefined, null, Infinity. For testing error handling, type coercion, and defensive programming.
Example Outputs
NaNundefinednullInfinity-InfinityAPI 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
Related Types
Generate Error Value + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.