Skip to content

API return values (null values vs. Exceptions, framing) #13

Closed
@lanthaler

Description

@lanthaler

What should we do in API when things go wrong? Raise expections? Return null?

Consensus on the telecon was that we shoud raise exceptions in case of error and just return valid data.

What should we if your frame didn't match your input?

  • return null
  • return {}

Most people opted for returning {} at the telecon but there might be some implications that should be further investigated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions