You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I am trying to do is to extend core HTTPException class because Facebook API on HTTP requests replies with non-standart HTTP response codes and Codeigniter throws Exception on those cases.
So, I wanted to extend HTTPException class to add additional non-standart HTTP response codes (like 190 from https://developers.facebook.com/docs/graph-api/using-graph-api/error-handling/#errorcodes )
The documentation states that, e.g.:
If you need to use a constructor in your class make sure you extend the parent constructor:
My example looks like this, but it always throws some error that Fatal error: Cannot declare class HTTPException because the name is already in use in /app/HTTPException.php on line 7
Similar questions:
And, also, it would be enough if those codes would be possible to "ignore"?
Like problem described here: https://forum.codeigniter.com/thread-75069.html
And the extension of core classes also discussed here: #358
The text was updated successfully, but these errors were encountered:
What I am trying to do is to extend core
HTTPException
class because Facebook API on HTTP requests replies with non-standart HTTP response codes and Codeigniter throws Exception on those cases.So, I wanted to extend HTTPException class to add additional non-standart HTTP response codes (like
190
from https://developers.facebook.com/docs/graph-api/using-graph-api/error-handling/#errorcodes )The documentation states that, e.g.:
https://codeigniter4.github.io/CodeIgniter4/extending/core_classes.html#extending-core-classes
My
app/Config/Autload.php
config line for additional class loading:And the class file itself located under
app/HTTPException.php
:My example looks like this, but it always throws some error that
Fatal error: Cannot declare class HTTPException because the name is already in use in /app/HTTPException.php on line 7
Similar questions:
And, also, it would be enough if those codes would be possible to "ignore"?
Like problem described here: https://forum.codeigniter.com/thread-75069.html
And the extension of core classes also discussed here: #358
The text was updated successfully, but these errors were encountered: