adding PubnubError support