elastic / elastic/logstash

Event API: getField should throw an exception when field is missing

Open
#8,305 1 comment 1 reaction 0 assignees View on GitHub
breaking change v7.0.0-alpha1
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
1d 4h
Merged PRs (30d)
88

Description

Make getField throw exception if the requested field is missing

Proposal:

```
class FieldMissingException extends Exception { /* ... */ }

Object getField(...) throws FieldMissingException
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the Java Event API implementation of getField and any tests covering missing fields. Read how existing API exceptions are defined and used; done means a missing requested field consistently raises the proposed checked exception and the relevant tests document that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.