gerbenjacobs / HabboAPI

A PHP wrapper for the (undocumented) Habbo API
MIT License
45 stars 10 forks source link

MessageBag for HabboParser #8

Closed DavydeVries closed 8 years ago

DavydeVries commented 8 years ago

MessageBag for HabboParser based on http_code. Because issue: #7 HabboParser.php error

gerbenjacobs commented 8 years ago

Sorry for not mentioning it in the issue, but I was already working on it.

The messagebag concept is good, it's kinda what I also introduced. But I'm not sure about creating our own errors. I'd rather just convey the ones we get from Habbo straight to the user.

An example of this is that a 404 'not-found' can also mean the Habbo is banned. Which is something we can not detect with this library, unfortunately.