adding PubnubError class, which can be used for error reporting