Welcome Guest, Not a member yet? Register   Sign In
How I can extend CodeIgniter\HTTP\Response::statusCodes
#1

(This post was last modified: 12-16-2019, 02:22 PM by XTAZ.)

Hello!

How I can extend CodeIgniter\HTTP\Response:: statusCodes?

I work with https://github.com/smi2/phpClickHouse and https://clickhouse.yandex/docs/en/.

-> If I use wrong username/password for db
-> db generate error with code 193
-> phpClickHouse throws exception with code 193
-> CodeIgniter throws exception about code 193 doents exists
-> I cant view ClickHouse error

https://prnt.sc/qbqcoe
https://prnt.sc/qbqbgr

Perhaps it is not necessary to throw an exception if the http code is unknown?

==========
Update
Different codes throw different codes

How can I disable "throw HTTPException :: forUnkownStatusCode" without copy all HTTP library to /app?
Reply


Messages In This Thread
How I can extend CodeIgniter\HTTP\Response::statusCodes - by XTAZ - 12-16-2019, 01:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB