Skip to content

NotionException returns wrong code #89

@fschirinzi

Description

@fschirinzi

Describe the bug
When a NotionException is thrown, the code is always 0.

To Reproduce
No reproduction needed. See code:

return new NotionException(
$message,
0,
$response->toException()
);

Expected behavior
The exception should contain the HTTP Status code.

Exceptions
.
Additional context
.

See my PR
#88

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions