Searched refs:apx (Results 1 - 25 of 40) sorted by relevance

12

/pkg/src/modules/client/
H A Dhistory.py37 import pkg.client.api_errors as apx namespace
85 apx.ImageLockedError: RESULT_FAILED_LOCKED,
86 apx.InvalidCatalogFile: RESULT_FAILED_STORAGE,
87 apx.BENamingNotSupported: RESULT_FAILED_BAD_REQUEST,
88 apx.InvalidBENameException: RESULT_FAILED_BAD_REQUEST,
89 apx.CertificateError: RESULT_FAILED_CONFIGURATION,
90 apx.PublisherError: RESULT_FAILED_BAD_REQUEST,
91 apx.CanceledException: RESULT_CANCELED,
92 apx.ImageUpdateOnLiveImageException: RESULT_FAILED_BAD_REQUEST,
93 apx
[all...]
H A Dapi.py77 import pkg.client.api_errors as apx namespace
166 except apx.CanceledException:
178 except apx.CanceledException:
211 except apx.CanceledException:
233 except apx.CanceledException:
322 raise apx.VersionException(CURRENT_API_VERSION,
345 raise apx.SuidUnsupportedError()
488 except apx.BEException:
585 """Verify validity of certificates. Any apx.ExpiringCertificate
598 # we always explicitly handle apx
[all...]
H A Dimage.py51 import pkg.client.api_errors as apx namespace
240 raise apx.ImageAlreadyExists(self.root)
248 raise apx.CreatingImageInNonEmptyDir(
330 raise apx.InvalidPropertyValue(_("The trust "
409 except apx.ImageLockedError as e:
441 raise apx.ImageLockedError()
451 exc = apx.UnprivilegedUserError(e.filename)
453 exc = apx.ReadOnlyFileSystemException(
527 raise apx.ImageNotFoundException(
542 raise apx
[all...]
H A Dsigpolicy.py28 import pkg.client.api_errors as apx namespace
152 raise apx.RequiredSignaturePolicyException(pub)
182 raise apx.MissingRequiredNamesException(pub,
H A Dimageconfig.py36 import pkg.client.api_errors as apx namespace
316 raise apx.MoveRelativeToUnknown(staying_put)
762 exc = apx._convert_error(e)
763 if not isinstance(exc, apx.PermissionsException) or \
790 except apx.PermissionsException:
826 except apx.MalformedLinkedImageName:
994 raise apx.InvalidPropertyValue(_(
1058 raise apx.InvalidPropertyValue(_(
1140 raise apx.UnknownSysrepoConfiguration()
1539 raise apx
[all...]
H A Dpkgplan.py37 import pkg.client.api_errors as apx namespace
317 except apx.UnknownPublisher:
349 except apx.SigningException as e:
351 if isinstance(e, apx.BrokenChain):
536 errors.append(apx.LicenseAcceptanceError(
540 raise apx.PkgLicenseErrors(errors)
/pkg/src/modules/file_layout/
H A Dfile_manager.py46 import pkg.client.api_errors as apx namespace
50 class NeedToModifyReadOnlyFileManager(apx.ApiException):
63 apx.ApiException.__init__(self)
73 class FMInsertionFailure(apx.ApiException):
79 apx.ApiException.__init__(self)
89 class FMPermissionsException(apx.PermissionsException):
98 class UnrecognizedFilePaths(apx.ApiException):
103 apx.ApiException.__init__(self)
307 raise apx._convert_error(e)
/pkg/src/modules/client/linkedimage/
H A Dzone.py40 import pkg.client.api_errors as apx namespace
164 raise apx._convert_error(e)
165 except apx.LinkedImageException as e:
254 raise apx._convert_error(e)
255 except apx.LinkedImageException as e:
408 raise apx.LinkedImageException(
438 raise apx.LinkedImageException(
478 raise apx.LinkedImageException(
H A Dcommon.py61 import pkg.client.api_errors as apx namespace
153 assert e is None or type(e) == apx.LinkedImageException
206 raise apx.LinkedImageException(bundle=exceptions)
336 raise apx.LinkedImageException(lin_malformed=name)
339 raise apx.LinkedImageException(lin_malformed=name)
342 raise apx.LinkedImageException(lin_malformed=name)
593 except apx.LinkedImageException:
757 except apx.LinkedImageException:
929 errs.append(apx.LinkedImageException(
935 errs.append(apx
[all...]
/pkg/src/tests/api/
H A Dt_linked_image.py41 import pkg.client.api_errors as apx namespace
118 "e_type": apx.LinkedImageException,
129 "e_type": apx.LinkedImageException,
136 "e_type": apx.LinkedImageException,
716 "e_type": apx.PlanCreationException,
723 "e_type": apx.PlanCreationException,
730 "e_type": apx.PlanCreationException,
749 "e_type": apx.PlanCreationException,
756 "e_type": apx.PlanCreationException,
763 "e_type": apx
[all...]
/pkg/src/modules/actions/
H A Dgroup.py40 import pkg.client.api_errors as apx namespace
114 raise apx.ActionExecutionError(self,
133 raise apx.ActionExecutionError(self, error=e,
H A Ddirectory.py37 import pkg.client.api_errors as apx namespace
113 raise apx.ActionExecutionError(
245 raise apx.ActionExecutionError(self,
257 raise apx.ActionExecutionError(self,
H A Dsignature.py39 import pkg.client.api_errors as apx namespace
231 raise apx.UnsupportedSignatureVersion(version, sig=self)
442 raise apx.UnverifiedSignature(self,
467 except apx.SigningException as e:
481 raise apx.UnverifiedSignature(self,
531 raise apx.BadFileFormat(_("{0} was expected to "
599 raise apx.AlmostIdentical(hsh,
H A Duser.py40 import pkg.client.api_errors as apx namespace
195 raise apx.ActionExecutionError(self, error=e,
208 raise apx.ActionExecutionError(self,
H A Dgeneric.py46 import pkg.client.api_errors as apx namespace
347 raise apx.UnsupportedSignatureVersion(ver, sig=self)
662 raise apx.ActionExecutionError(self,
701 raise apx.ActionExecutionError(self,
1108 raise apx.ActionExecutionError(self,
1117 raise apx.ActionExecutionError(self,
1129 raise apx.ActionExecutionError(self, error=e,
1144 raise apx.ActionExecutionError(self,
1261 raise apx.ActionExecutionError(self, details=err_txt,
/pkg/src/modules/publish/
H A Dtransaction.py51 import pkg.client.api_errors as apx namespace
251 except (apx.ApiException, sr.RepositoryError) as e:
293 except apx.TransportError as e:
306 except apx.TransportError as e:
514 except apx.TransportError as e:
533 except apx.TransportError as e:
563 except apx.TransportError as e:
584 except apx.TransportError as e:
603 except apx.TransportError as e:
626 except apx
[all...]
/pkg/src/modules/
H A Dp5p.py39 import pkg.client.api_errors as apx namespace
54 class ArchiveErrors(apx.ApiException):
353 raise apx._convert_error(e)
372 raise apx._convert_error(e)
424 raise apx._convert_error(e)
445 raise apx._convert_error(e)
526 raise apx._convert_error(e)
537 raise apx._convert_error(e)
548 raise apx._convert_error(e)
811 raise apx
[all...]
H A Dmanifest.py43 import pkg.client.api_errors as apx namespace
1038 raise apx.InvalidPackageErrors(errors)
1081 raise apx._convert_error(e)
1336 raise apx.BadManifestSignatures(self.fmri)
1348 raise apx.PermissionsException(e.filename)
1350 raise apx.ReadOnlyFileSystemException(
1359 raise apx.PermissionsException(e.filename)
1361 raise apx.ReadOnlyFileSystemException(
1380 raise apx.PermissionsException(e.filename)
1382 raise apx
[all...]
/pkg/src/tests/cli/
H A Dt_pkgsign.py46 import pkg.client.api_errors as apx namespace
196 self.assertRaises(apx.RequiredSignaturePolicyException,
202 self.assertRaises(apx.MissingRequiredNamesException,
222 self.assertRaises(apx.RequiredSignaturePolicyException,
228 self.assertRaises(apx.MissingRequiredNamesException,
256 self.assertRaises(apx.RequiredSignaturePolicyException,
260 self.assertRaises(apx.MissingRequiredNamesException,
278 self.assertRaises(apx.RequiredSignaturePolicyException,
284 self.assertRaises(apx.MissingRequiredNamesException,
342 self.assertRaises(apx
[all...]
H A Dt_pkg_freeze.py37 import pkg.client.api_errors as apx namespace
98 self.assertRaises(apx.FreezePkgsException,
267 self.assertRaises(apx.PlanCreationException, self._api_install,
/pkg/src/modules/client/transport/
H A Dtransport.py46 import pkg.client.api_errors as apx namespace
330 except (sr.RepositoryError, apx.ApiException):
387 except apx.UnknownCatalogEntry:
492 raise apx.UnknownPublisher(publisher_name)
700 raise apx.UnsupportedSearchError(e.url,
706 raise apx.MalformedSearchRequest(e.url)
719 raise apx.NegativeSearchResult(no_result_url)
782 except apx.CatalogError as e:
872 raise apx.PermissionsException(e.filename)
1010 except apx
[all...]
/pkg/src/modules/server/
H A Drepository.py47 import pkg.client.api_errors as apx namespace
479 raise apx.PermissionsException(
482 raise apx.ReadOnlyFileSystemException(
687 raise apx.PermissionsException(
691 raise apx.ReadOnlyFileSystemException(
695 raise apx.InvalidLockException(
737 raise apx.PermissionsException(
740 raise apx.ReadOnlyFileSystemException(
794 except (apx.InvalidPackageErrors,
807 except apx
[all...]
/pkg/src/util/publish/
H A Dpkgdiff.py39 import pkg.client.api_errors as apx namespace
129 apx.list_to_lang(list(utypes)))))
140 except (pkg.actions.ActionError, apx.InvalidPackageErrors) as e:
142 except (EnvironmentError, apx.ApiException) as e:
/pkg/src/
H A Dpull.py45 import pkg.client.api_errors as apx namespace
214 except apx.TransportError:
264 raise apx.InvalidPackageErrors(errors)
385 except apx.TransportError as e:
590 abort(str(apx.PackageMatchErrors(unmatched_fmris=unmatched)),
605 except apx.PackageMatchErrors as e:
823 except apx.InvalidPackageErrors as e:
842 raise apx._convert_error(e)
873 raise apx._convert_error(e)
1169 except apx
[all...]
H A Dpkgrepo.py75 import pkg.client.api_errors as apx namespace
246 except apx.PackageMatchErrors as e:
528 raise apx.InvalidOptionError(
529 apx.InvalidOptionError.ARG_INVALID,
798 raise apx.InvalidOptionError(
799 apx.InvalidOptionError.ARG_INVALID,
903 raise apx.InvalidOptionError(
904 apx.InvalidOptionError.ARG_INVALID,
1022 error(apx.PackageMatchErrors(unmatched_fmris=unmatched),
1029 error(apx
[all...]

Completed in 97 milliseconds

12