Cphalcon: [NFR]: Add a method that describes an exception to HTML format

Created on 31 Jan 2020  路  4Comments  路  Source: phalcon/cphalcon

Hello!

The Phalcon\Debug class now generates an HTML view with every new exception.

My idea is to add public method renderHtml(\Throwable $ex): string.
That is, the class work will not change, but developers can use this method in their solutions to generate HTML representation as a string.
For example, the developer does not want to use the standard mechanism of catching exceptions which provides Phalcon, and wants just to receive HTML representation from this mechanism as a string.

Thanks.
I'm waiting for feedback.

4.1.0 new feature request

Most helpful comment

Thank you @TimurFlush

Resolved in https://github.com/phalcon/cphalcon/pull/14812

All 4 comments

I created a new method renderHtml() in the Phalcon\Debug class.
I just tested it, and it's working fine.
Can I create a PR?

@niden Please see

Feel free to always create PR if you want, you don't have to ask for permission @TimurFlush :)

Thank you @TimurFlush

Resolved in https://github.com/phalcon/cphalcon/pull/14812

Thank you @TimurFlush

Resolved in #14812

And you (:

Was this page helpful?
0 / 5 - 0 ratings