Searched refs:api_errors (Results 1 - 25 of 79) sorted by relevance

1234

/pkg/src/tests/api/
H A Dt_pkg_api_fix.py32 import pkg.client.api_errors as api_errors namespace
61 self.assertRaises(api_errors.PlanCreationException,
66 self.assertRaises(api_errors.PlanCreationException,
H A Dt_pkg_api_hydrate.py32 import pkg.client.api_errors as api_errors namespace
77 self.assertRaises(api_errors.PlanCreationException,
84 self.assertRaises(api_errors.PlanCreationException,
H A Dt_publisher.py41 import pkg.client.api_errors as api_errors namespace
95 self.assertRaises(api_errors.BadRepositoryURI, setattr, uobj,
97 self.assertRaises(api_errors.UnsupportedRepositoryURI, setattr,
101 self.assertRaises(api_errors.BadRepositoryURI, setattr, uobj,
103 self.assertRaises(api_errors.BadRepositoryURIPriority,
105 self.assertRaises(api_errors.BadRepositoryAttributeValue,
107 self.assertRaises(api_errors.BadRepositoryAttributeValue,
121 self.assertRaises(api_errors.UnsupportedRepositoryURIAttribute,
123 self.assertRaises(api_errors
[all...]
H A Dt_api.py35 import pkg.client.api_errors as api_errors namespace
166 self.assertRaises(api_errors.PlanExistsException,
170 self.assertRaises(api_errors.PlanExistsException,
174 self.assertRaises(api_errors.PlanExistsException,
180 except api_errors.PlanExistsException:
188 self.assertRaises(api_errors.PrematureExecutionException,
194 self.assertRaises(api_errors.AlreadyPreparedException,
199 self.assertRaises(api_errors.AlreadyPreparedException,
201 self.assertRaises(api_errors
[all...]
H A Dt_pkg_api_install.py36 import pkg.client.api_errors as api_errors namespace
285 self.assertRaises(api_errors.PlanExecutionError,
418 self.assertRaises(api_errors.PlanCreationException,
424 self.assertRaises(api_errors.PlanCreationException,
458 self.assertRaises(api_errors.PlanCreationException,
647 self.assertRaises(api_errors.IpkgOutOfDateException,
659 self.assertRaises(api_errors.IpkgOutOfDateException,
699 self.assertRaises(api_errors.IpkgOutOfDateException,
744 self.assertRaises(api_errors
[all...]
H A Dt_p5i.py35 import pkg.client.api_errors as api_errors namespace
186 self.assertRaises(api_errors.RetrievalError,
189 self.assertRaises(api_errors.RetrievalError,
200 self.assertRaises(api_errors.InvalidP5IFile, p5i.parse,
204 self.assertRaises(api_errors.InvalidP5IFile, p5i.parse,
H A Dt_manifest.py36 import pkg.client.api_errors as api_errors namespace
377 self.assertRaises(api_errors.InvalidPackageErrors,
380 self.assertRaises(api_errors.InvalidPackageErrors,
383 self.assertRaises(api_errors.InvalidPackageErrors,
386 self.assertRaises(api_errors.InvalidPackageErrors,
396 self.assertRaises(api_errors.BadManifestSignatures,
H A Dt_api_info.py39 import pkg.client.api_errors as api_errors namespace
53 self.assertRaises(api_errors.NoPackagesInstalledException,
58 self.assertRaises(api_errors.UnrecognizedOptionsToInfo,
60 self.assertRaises(api_errors.UnrecognizedOptionsToInfo,
285 self.assertRaises(api_errors.UnrecognizedOptionsToInfo,
287 self.assertRaises(api_errors.UnrecognizedOptionsToInfo,
290 self.assertRaises(api_errors.UnrecognizedOptionsToInfo,
292 self.assertRaises(api_errors.UnrecognizedOptionsToInfo,
327 self.assertRaises(api_errors
[all...]
/pkg/src/modules/
H A Dp5i.py34 import pkg.client.api_errors as api_errors namespace
63 raise api_errors.InvalidResourceLocation(location)
77 raise api_errors.RetrievalError(e,
86 raise api_errors.RetrievalError(e)
89 raise api_errors.InvalidP5IFile(e)
94 raise api_errors.InvalidP5IFile(_("missing version"))
96 raise api_errors.InvalidP5IFile(_("invalid version"))
99 raise api_errors.UnsupportedP5IFile()
140 except (api_errors
[all...]
H A Dp5s.py32 import pkg.client.api_errors as api_errors namespace
81 raise api_errors.InvalidP5SFile(e)
86 raise api_errors.InvalidP5SFile(_("missing version"))
88 raise api_errors.InvalidP5SFile(_("invalid version"))
91 raise api_errors.UnsupportedP5SFile()
155 except (api_errors.PublisherError, TypeError, ValueError) as e:
156 raise api_errors.InvalidP5SFile(str(e))
H A Dlockfile.py35 import pkg.client.api_errors as api_errors namespace
132 raise api_errors.UnexpectedLinkError(
H A Dcatalog.py46 import pkg.client.api_errors as api_errors namespace
98 raise api_errors.PermissionsException(
108 raise api_errors.PermissionsException(
111 raise api_errors.ReadOnlyFileSystemException(
229 raise api_errors.UnrecognizedCatalogPart(name)
290 raise api_errors.PermissionsException(
293 raise api_errors.ReadOnlyFileSystemException(
320 raise api_errors.RetrievalError(e,
323 raise api_errors
[all...]
H A Dmisc.py72 import pkg.client.api_errors as api_errors namespace
1199 raise api_errors.NoSuchCertificate(path, uri=uri,
1202 raise api_errors.PermissionsException(e.filename)
1204 raise api_errors.ReadOnlyFileSystemException(e.filename)
1211 raise api_errors.InvalidCertificate(path, uri=uri,
1220 raise api_errors.ExpiredCertificate(ssl_cert, uri=uri,
1234 raise api_errors.NotYetValidCertificate(ssl_cert, uri=uri,
1245 raise api_errors.ExpiringCertificate(ssl_cert, uri=uri,
1338 raise api_errors
[all...]
/pkg/src/modules/client/
H A Dpublisher.py63 import pkg.client.api_errors as api_errors namespace
185 raise api_errors.PublisherError("Both 'proxies' and "
242 raise api_errors.ModifyingSyspubException(_("Cannot "
246 raise api_errors.BadRepositoryAttributeValue(
255 raise api_errors.BadRepositoryAttributeValue(
267 raise api_errors.BadRepositoryURIPriority(value)
290 raise api_errors.BadRepositoryAttributeValue(
294 raise api_errors.UnsupportedRepositoryURIAttribute(
299 raise api_errors
[all...]
H A Dbootenv.py33 import pkg.client.api_errors as api_errors namespace
254 raise api_errors.UnableToCopyBE()
316 raise api_errors.InvalidBENameException(be_name)
322 raise api_errors.BENamingNotSupported(be_name)
329 raise api_errors.DuplicateBEName(
415 raise api_errors.BENamingNotSupported("")
424 raise api_errors.BENamingNotSupported("")
445 raise api_errors.UnableToCopyBE()
448 raise api_errors
[all...]
H A Dclient_api.py51 import pkg.client.api_errors as api_errors namespace
555 if isinstance(err, api_errors.CatalogOriginRefreshException):
587 not isinstance(err, api_errors.PermissionsException):
651 except api_errors.PermissionsException:
657 except api_errors.CatalogRefreshException as e:
747 except (api_errors.InvalidPackageErrors,
748 api_errors.ActionExecutionError,
749 api_errors.PermissionsException) as e:
753 except api_errors
[all...]
H A Dquery_parser.py27 import pkg.client.api_errors as api_errors namespace
156 raise api_errors.SlowSearchUsed()
280 api_errors.IncorrectIndexFileHash()
435 raise api_errors.InconsistentIndexException(e)
H A Dimageplan.py54 import pkg.client.api_errors as api_errors namespace
210 raise api_errors.ImageFormatUpdateNeeded(
426 except api_errors.PlanCreationException as e:
911 raise api_errors.PlanCreationException(
1470 raise api_errors.PlanCreationException(
1640 except api_errors.BEException:
2329 api_errors.InconsistentActionAttributeError)
2841 api_errors.InconsistentActionTypeError,
2857 api_errors
[all...]
/pkg/src/tests/cli/
H A Dt_lock.py33 import pkg.client.api_errors as api_errors namespace
115 self.assertRaises(api_errors.InvalidPlanError, api_obj2.prepare)
131 self.assertRaises(api_errors.InvalidPlanError,
166 self.assertRaises(api_errors.InvalidPlanError,
/pkg/src/
H A Dclient.py70 import pkg.client.api_errors as api_errors namespace
1378 except (api_errors.PermissionsException, api_errors.UnknownErrors) as e:
1383 except api_errors.TransportError as e:
1387 except api_errors.PlanLicenseErrors as e:
1400 except api_errors.InvalidPlanError as e:
1405 except api_errors.ImageFormatUpdateNeeded as e:
1408 except api_errors.ImageInsufficentSpace as e:
1436 except (api_errors
[all...]
H A Dsign.py48 import pkg.client.api_errors as api_errors namespace
121 raise api_errors.BadFileFormat(_("The file {0} was expected to "
283 raise api_errors.PackageMatchErrors(
335 except api_errors.AlmostIdentical as e:
344 raise api_errors.DuplicateSignaturesAlreadyExist(pfmri)
367 except (api_errors.ApiException, fmri.FmriError,
377 except api_errors.ApiException as e:
H A Dpkgdep.py40 import pkg.client.api_errors as api_errors namespace
184 except api_errors.ApiException as e:
299 raise api_errors._convert_error(e)
314 except api_errors.ImageNotFoundException as e:
325 except api_errors.PermissionsException as e:
328 except api_errors.ImageFormatUpdateNeeded as e:
344 except api_errors.ApiException as e:
600 except api_errors.MissingFileArgumentException as e:
603 except api_errors
[all...]
H A Ddepot.py105 import pkg.client.api_errors as api_errors namespace
534 except api_errors.ApiException as _e:
849 except (api_errors.ApiException, sr.RepositoryError) as _e:
868 except api_errors.ApiException as _e:
886 api_errors.ApiException) as e:
896 api_errors.UnknownErrors,
897 api_errors.PermissionsException) as e:
908 api_errors.UnknownErrors,
909 api_errors
[all...]
/pkg/src/modules/actions/
H A Dfile.py44 import pkg.client.api_errors as api_errors namespace
50 from pkg.client.api_errors import ActionExecutionError
84 raise api_errors.FileInUseException(path)
89 raise api_errors.FileInUseException(path)
114 raise api_errors.PlanExecutionError(retrieved)
287 raise api_errors.FileInUseException(final_path)
H A Dhardlink.py38 from pkg.client.api_errors import ActionExecutionError

Completed in 162 milliseconds

1234