contributte / apitte

:wrench: An opinionated and enjoyable API framework based on Nette Framework. Supporting content negotiation, debugging, middlewares, attributes, annotations and loving openapi/swagger.
https://contributte.org/packages/contributte/apitte/
MIT License
61 stars 36 forks source link

Fix for "Wrong parameters for SnapshotException" #129

Closed Vlczech closed 4 years ago

Vlczech commented 4 years ago

DB error codes may be (and in PostgreSQL they are) strings (instead of required long).

It solves following error: Error: Wrong parameters for Apitte\Core\Exception\Runtime\SnapshotException([string $message [, long $code [, Throwable $previous = NULL]]]) in ...

Vlczech commented 4 years ago

...but not only integer in string - for example code: HV00K (see PostgreSQL Error Codes)

f3l1x commented 4 years ago

Thanks @Vlczech

Vlczech commented 4 years ago

You are welcome :-)