replaced throw_error with throw_exception
Wrote UnableToCanonicalizeNonRolePackage