JError::attachHandler

Method that attaches the error handler to JError