Notification method called when an error has occurred.
a network code associated with the error
a message associated with the error