if error getting contexts catch error and return xbrlexception