Check for category and resource in exception