api_errors.py revision 2097
565N/A# The contents of this file are subject to the terms of the 565N/A# Common Development and Distribution License (the "License"). 565N/A# You may not use this file except in compliance with the License. 565N/A# See the License for the specific language governing permissions 565N/A# and limitations under the License. 565N/A# When distributing Covered Code, include this CDDL HEADER in each 565N/A# If applicable, add the following below this CDDL HEADER, with the 565N/A# fields enclosed by brackets "[]" replaced with your own identifying 565N/A# information: Portions Copyright [yyyy] [name of copyright owner] 1895N/A# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 926N/A# EmptyI for argument defaults; can't import from misc due to circular 1540N/A # To workaround python issues 6108 and 2517, this provides a 1540N/A # a standard wrapper for this class' exceptions so that they 1540N/A # have a chance of being stringified correctly. 1710N/A """Used to indicate that the image is currently locked by another thread 1710N/A or process and cannot be modified.""" 1710N/A return _(
"The image cannot be modified as it is " 1710N/A "currently in use by another package client: " 1710N/A "%(pid_name)s on %(host)s, pid %(pid)s.") % {
1710N/A return _(
"The image cannot be modified as it is " 1710N/A "currently in use by another package client: " 1710N/A "%(pid_name)s on an unknown host, pid %(pid)s.") % {
1710N/A return _(
"The image cannot be modified as it is " 1710N/A "currently in use by another package client: " 1710N/A "pid %(pid)s on %(host)s.") % {
1710N/A return _(
"The image cannot be modified as it is currently " 1710N/A "in use by another package client.")
565N/A """Used when an image was not found""" 1618N/A """Base exception class for plan preparation errors.""" 1755N/A """Used to indicate that the requested operation could not be completed 1755N/A as one or more packages contained invalid metadata.""" 1755N/A """'errors' should be a list of exceptions or strings 1755N/A indicating what packages had errors and why.""" 1755N/A return _(
"The requested operation cannot be completed due " 1755N/A "to invalid package metadata. Details follow:\n\n" 1618N/A """Used to indicate that license-related errors occurred during 1618N/A plan evaluation or execution.""" 1618N/A """Used to indicate that plan evaluation or execution failed due 1618N/A to license-related errors for a package.""" 1618N/A """'errors' should be a list of LicenseAcceptanceError 1618N/A """A list of LicenseAcceptanceError exceptions.""" 1618N/A """Used to indicate that image plan evaluation or execution failed due 1618N/A to license-related errors.""" 1618N/A """'errors' should be a list of PkgLicenseErrors exceptions.""" 1618N/A """Returns a dictionary indexed by package FMRI string of 1618N/A lists of LicenseAcceptanceError exceptions.""" 1618N/A """Returns a string representation of the license errors.""" 1710N/A """Used to indicate that the image plan is no longer valid, likely as a 1710N/A result of an image state change since the plan was created.""" 1710N/A return _(
"The plan for the current operation is no longer " 1710N/A "valid. The image has likely been modified by another " 1710N/A "process or client. Please try the operation again.")
1369N/A return _(
"Invalid package state change attempted '%(states)s' " 926N/A return _(
"Could not operate on %s\nbecause of " 926N/A "insufficient permissions. Please try the command " 926N/A "again using pfexec\nor otherwise increase your " 685N/ACould not complete the operation because of insufficient permissions. Please 926N/Atry the command again using pfexec or otherwise increase your privileges. 879N/A return _(
"Could not operate on %s\nbecause the file is " 879N/A "in use. Please stop using the file and try the\n" 1945N/A """Used to indicate that the operation was attempted on a 1335N/A return _(
"Could not complete the operation on %s: " 1335N/A return _(
"Could not complete the operation: read-only " 988N/AThe following pattern(s) did not match any packages in the current catalog. 988N/ATry relaxing the pattern, refreshing and/or examining the catalogs:""")
1505N/A s = _(
"The following patterns only matched packages " 1505N/A "that are from publishers other than that which " 1505N/A "supplied the already installed version of this package")
988N/A s = _(
"'%s' matches multiple packages")
1505N/A s = _(
"'%s' matches no installed packages")
1505N/A s = _(
"'%s' is an illegal fmri")
838N/A s = _(
"'%s' supports the following architectures: %s")
838N/A a = _(
"Image architecture is defined as: %s")
1461N/A s = _(
"'%(p)s' depends on obsolete package '%(op)s'")
1352N/A s = _(
"The proposed operation can not be performed for " 1352N/A "the following package(s) as they are already " 1505N/A s = _(
"The following different patterns specify the" 1505N/A res += [_(
"No solution was found to satisfy constraints")]
1945N/A res += [_(
"Package %(pkg)s is missing a dependency: " 1859N/A """Used to indicate that action execution (such as install, remove, 1859N/A etc.) failed even though the action is valid. 1050N/A In particular, this exception indicates that something went wrong in the 1859N/A application (or unapplication) of the action to the system, and is most 1859N/A likely not an error in the pkg(5) code.""" 1859N/A """'action' is the object for the action that failed during the 1859N/A 'details' is an optional message explaining what operation 1859N/A failed, why it failed, and why it cannot continue. It should 1859N/A also include a suggestion as to how to resolve the situation 1859N/A 'error' is an optional exception object that may have been 1859N/A raised when the operation failed. 1859N/A 'fmri' is an optional package FMRI indicating what package 1859N/A was being operated on at the time the error occurred. 1859N/A 'use_errno' is an optional boolean value indicating whether 1859N/A the strerror() text of the exception should be used. If 1859N/A 'details' is provided, the default value is False, otherwise 1859N/A # If details were provided, don't use errno unless 1050N/A # Fall back on the wrapped exception if we don't have anything 1859N/A "%(action)s:\n%(details)s") % {
1050N/A # If we only have one of the two, no need for the colon. 1352N/A """Base exception class for all catalog exceptions.""" 1352N/A """Used to indicate that the specified FMRI is not valid for catalog 1352N/A operations because it is missing publisher information.""" 1352N/A return _(
"The FMRI '%s' does not contain publisher information " 1352N/A """Used to indicate an operation on the catalog's meta_root failed 1352N/A because the meta_root is invalid.""" 1352N/A return _(
"Catalog meta_root '%(root)s' is invalid; unable " 1352N/A """Used to indicate the server catalog files do not have the expected 1352N/A """files should contain a list object with each entry consisting 1352N/A of a tuple of filename, expected_mode, received_mode.""" 1352N/A msg = _(
"The following catalog files have incorrect " 1352N/A msg += _(
"\t%(fname)s: expected mode: %(emode)s, found " 1352N/A """Used to indicate that the Catalog signatures are not valid.""" 1352N/A return _(
"The signature data for the '%s' catalog file is not " 1352N/A """Used to indicate that the requested catalog updates could not be 1352N/A applied as the new catalog data is significantly different such that 1352N/A the old catalog cannot be updated to match it.""" 1352N/A return _(
"Unable to determine the updates needed for " 1352N/A "the current catalog using the provided catalog " 1352N/A """Used to indicate that the specified catalog operation could not be 1352N/A performed since it would result in a duplicate catalog entry.""" 1352N/A return _(
"Unable to perform '%(op)s' operation for catalog " 1352N/A "%(name)s; completion would result in a duplicate entry " 1352N/A """Used to indicate that an update request for the catalog could not 1352N/A be performed because update requirements were not satisfied.""" 1352N/A return _(
"Catalog updates can only be applied to an on-disk " 1352N/A """Used to indicate a Catalog file could not be loaded.""" 2022N/A """Used to indicate that a Catalog's attributes and parts do not 2022N/A match. This is likely the result of an attributes file being 2022N/A retrieved which doesn't match the parts that were retrieved such 2022N/A as in a misconfigured or stale cache case.""" 2022N/A return _(
"The content of the catalog for publisher '%s' " 2022N/A "doesn't match the catalog's attributes. This is " 2022N/A "likely the result of a mix of older and newer " 2022N/A "catalog files being provided for the publisher.") % \
1352N/A """Used to indicate that the specified catalog updates are for an older 1352N/A version of the catalog and cannot be applied.""" 1352N/A return _(
"Unable to determine the updates needed for the " 1352N/A "catalog using the provided catalog update data in '%s'. " 1352N/A "The specified catalog updates are for an older version " 1352N/A """Used to indicate that an entry for the specified package FMRI or 1352N/A pattern could not be found in the catalog.""" 1352N/A """Used to indicate that the specified CatalogUpdate operation is 1431N/A """Raised when the catalog finds a CatalogPart that is unrecognized 1431N/A return _(
"Unrecognized, unknown, or invalid CatalogPart '%s'") \
1352N/A """Used to indicate that some of the specified patterns to a catalog 1970N/A matching function did not match any catalog entries, or were invalid 596N/A # Illegal FMRIs have their own __str__ method 614N/A outstr += _(
"No matching package could be found for " 614N/A "the following FMRIs in any of the catalogs for " 926N/A "the current publishers:\n")
1027N/A """Based class used for all search-related api exceptions.""" 1191N/A """Raised when the server cannot understand the format of the 1191N/A """Returned when the search cannot find any matches.""" 1191N/A return _(
"The search at url %s returned no results.") %
self.
url 1191N/A """This class wraps exceptions which could appear while trying to 1895N/A s = _(
"Some repositories failed to respond appropriately:\n")
1191N/A s += _(
"%(o)s:\n%(msg)s\n") % \
1191N/A s += _(
"%s did not return a valid response.\n" \
1895N/A s += _(
"Some repositories don't support requested " 1191N/A s += _(
"%(o)s:\n%(msg)s\n") % \
1191N/A """This exception is thrown when a local search is performed without 1191N/A an index. It's raised after all results have been yielded.""" 1191N/A return _(
"Search performance is degraded.\n" 1191N/A "Run 'pkg rebuild-index' to improve search speed.")
1191N/A """Returned when a search protocol is not supported by the 1895N/A s = _(
"Search repository does not support the requested " 565N/A """ The base class for all exceptions that can occur while indexing. """ 565N/A """This is used when the index is not in a correct state.""" 1191N/A """This is used when the existing index is found to have inconsistent 2028N/A """This is used when an attempt to modify an index locked by another 2028N/A process or thread is made.""" 565N/A """ This is used when the indexer is unable to create, move, or remove 565N/A files or directories it should be able to. """ 565N/A return "Could not remove or create " \
565N/A "%s because of incorrect " \
565N/A "permissions. Please correct this issue then " \
1286N/A """This exception is used to wrap an indexing exception during install, 2089N/A uninstall, or update so that a more appropriate error message can be 1286N/A """This exception is used to wrap an indexing exception during install, 2089N/A uninstall, or update which was recovered from by performing a full 1191N/A """This exception is used when the children of a boolean operation 1191N/A have different return types. The command 'pkg search foo AND <bar>' 1191N/A is the simplest example of this.""" 565N/A """Removal of a package which satisfies dependencies has been attempted. 565N/A The first argument to the constructor is the FMRI which we tried to 565N/A remove, and is available as the "fmri" member of the exception. The 565N/A second argument is the list of dependent packages that prevent the 565N/A removal of the package, and is available as the "dependents" member. 835N/A """Raised when the depot doesn't have versions of operations 835N/A that the client needs to operate successfully.""" 1895N/A s =
"Unable to contact valid package repository" 835N/A s +=
"\nEncountered the following error(s):\n%s" % \
926N/A """Base exception class used for all data related errors.""" 926N/A """Used to indicate that the specified location does not contain a 926N/A valid p5i-formatted file.""" 1736N/A return _(
"The provided p5i data is in an unrecognized " 926N/A "format or does not contain valid publisher " 1736N/A return _(
"The provided p5i data is in an unrecognized format " 1736N/A "or does not contain valid publisher information.")
926N/A """Used to indicate that an attempt to read an unsupported version 926N/A of pkg(5) info file was attempted.""" 926N/A return _(
"Unsupported pkg(5) publisher information data " 1191N/A """Abstract exception class for all transport exceptions. 1191N/A Specific transport exceptions should be implemented in the 1191N/A transport code. Callers wishing to catch transport exceptions 1191N/A should use this class. Subclasses must implement all methods 1191N/A defined here that raise NotImplementedError.""" 926N/A """Used to indicate that a a requested resource could not be 926N/A return _(
"Error encountered while retrieving data from " 926N/A return _(
"Error encountered while retrieving data from: %s") % \
926N/A """Used to indicate that an invalid transport location was provided.""" 1076N/A return _(
"'%s' is not a valid boot environment name.") % \
1945N/A """Used to indicate that there is an existing boot environment 1076N/A return _(
"The boot environment '%s' already exists.") % \
884N/ABoot environment naming during package install is not supported on this 2089N/Aversion of OpenSolaris. Please update without the --be-name option.""")
884N/A return _(
"Unable to clone the current boot environment.")
884N/AA problem occurred while attempting to rename the boot environment 884N/Acurrently named %(orig)s to %(dest)s.""") % d
884N/A return _(
"Unable to mount %(name)s at %(mt)s") % \
884N/ANaming a boot environment when operating on a non-live image is 917N/A s = _(
"Info does not recognize the following options:")
941N/A """This is used when the index hash value doesn't match the hash of the 941N/A packages installed in the image.""" 926N/A """Base exception class for all publisher exceptions.""" 1087N/A """Used to indicate an operation on the publisher's meta_root failed 1087N/A because the meta_root is invalid.""" 1087N/A return _(
"Publisher meta_root '%(root)s' is invalid; unable " 2028N/A """Used to indicate that a publisher alias is not valid.""" 926N/A """Used to indicate that a publisher name is not valid.""" 926N/A """Used to indicate that the specified repository attribute value is 926N/A return _(
"'%(value)s' is not a valid value for repository " 926N/A "attribute '%(attribute)s'.") % {
926N/A """Used to indicate that the specified repository collection type is 926N/A return _(
"'%s' is not a valid repository collection type.") % \
926N/A """Used to indicate that a repository URI is not syntactically valid.""" 926N/A """Used to indicate that the priority specified for a repository URI is 926N/A return _(
"'%s' is not a valid URI priority; integer value " 926N/A """Used to indicate that the specified repository URI sort policy is 926N/A return _(
"'%s' is not a valid repository URI sort policy.") % \
926N/A """Used to indicate that an attempt to use a disabled publisher occurred 926N/A during an operation.""" 926N/A return _(
"Publisher '%s' is disabled and cannot be used for " 926N/A """Used to indicate that a publisher with the same name or alias already 926N/A exists for an image.""" 926N/A return _(
"A publisher with the same name or alias as '%s' " 926N/A """Used to indicate that a repository with the same origin uris 926N/A already exists for a publisher.""" 926N/A return _(
"A repository with the same name or origin URIs " 926N/A """Used to indicate that a repository URI is already in use by another 926N/A return _(
"Mirror '%s' already exists for the specified " 926N/A """Used to indicate that a repository URI is already in use by another 926N/A return _(
"Origin '%s' already exists for the specified " 1504N/A """Used to indicate that the specified publisher must have at least one 1504N/A repository with at least one origin URI.""" 1504N/A return _(
"At least one origin is required for %s. You must " 1504N/A "add a new origin before attempting to remove the specified " 926N/A """Used to indicate an attempt to remove the preferred publisher was 926N/A return _(
"The preferred publisher cannot be removed.")
1505N/A """Used to indicate an attempt to search a repo before or after itself""" 1505N/A return _(
"Cannot search a repository before or after itself")
926N/A """Used to indicate that an attempt to remove the selected repository 926N/A for a publisher was made.""" 926N/A return _(
"Cannot remove the selected repository for a " 926N/A """Used to indicate an attempt to set a disabled publisher as the 926N/A preferred publisher was made.""" 996N/A return _(
"Publisher '%s' is disabled and cannot be set as the " 1256N/A """Used to indicate that an attempt was made to set the preferred 1256N/A return _(
"The preferred publisher may not be disabled." 1256N/A " Another publisher must be set as the preferred " 1256N/A "publisher before this publisher can be disabled.")
926N/A """Used to indicate that no matching legal URI could be found using the 926N/A """Used to indicate that no matching publisher could be found using the 1736N/A """Used to indicate that one or more publisher prefixes are unknown by 1736N/A the specified repository.""" 1736N/A return _(
"The repository at %(location)s does not " 1736N/A "contain package data for %(unknown)s; only " 1736N/A "%(known)s.\n\nThis is either because the " 1736N/A "repository location is not valid, or because the " 1736N/A "provided publisher does not match those known by " 1736N/A return _(
"One or more of the repository origin(s) " 1736N/A "listed below contains package data for " 1736N/A "%(known)s; not %(unknown)s:\n\n%(origins)s\n\n" 1736N/A "This is either because one of the repository " 1736N/A "origins is not valid for this publisher, or " 1736N/A "because the list of known publishers retrieved " 1736N/A "from the repository origin does not match the " 1736N/A return _(
"The specified publisher repository does not " 1736N/A "contain any package data for %(unknown)s; only " 926N/A """Used to indicate that no matching related URI could be found using 926N/A the provided criteria.""" 926N/A """Used to indicate that no matching repository could be found using the 926N/A """Used to indicate that a repository URI could not be found in the 926N/A list of repository mirrors.""" 1431N/A """The publisher has no active repositories that support the 1431N/A return _(
"Publisher '%s' has no repositories that support the" 1937N/A """Operating on the SystemRepository using this method is not 1937N/A return _(
"Can not modify system repository using " 1937N/A """The caller tried to configure a System Repository with a 1937N/A protocol that is not supported.""" 1937N/A return _(
"System repository does not support " 1736N/A """Used to indicate that the specified repository does not provide 1736N/A publisher configuration information.""" 1736N/A return _(
"The specified package repository does not " 1736N/A "provide publisher configuration information.")
1736N/A return _(
"The package repository at %s does not " 1736N/A "provide publisher configuration information or " 1736N/A "the information provided is incomplete.") % \
1736N/A return _(
"One of the package repository origins for %s does " 1736N/A "not provide publisher configuration information or the " 926N/A """Used to indicate that a repository URI could not be found in the 926N/A list of repository origins.""" 926N/A """Used to indicate that the specified repository URI uses an 926N/A return _(
"The URI '%(uri)s' contains an unsupported " 926N/A return _(
"The specified URI contains an unsupported scheme.")
926N/A """Used to indicate that the specified repository URI attribute is not 926N/A supported for the URI's scheme.""" 926N/A return _(
"'%(attr)s' is not supported for '%(scheme)s'.") % {
2026N/A """The base class for exceptions related to manifest signing.""" 2026N/A # This string method is used by subclasses to fill in the details 2026N/A # about the package and signature involved. 2026N/A return _(
"The relevant signature action is " 2026N/A "found in %(pfmri)s and has a hash of " 2026N/A return _(
"The relevant signature action's value " 2026N/A """Exception used when a key, certificate or CRL file is not in a 2026N/A """Exception used when a signature reports a version which this version 2026N/A of pkg(5) doesn't support.""" 2026N/A return _(
"The signature action %(act)s was made using a " 2026N/A "version (%(ver)s) this version of pkg(5) doesn't " 2026N/A """Base class for exceptions encountered while establishing the chain 2026N/A """Exception used when a certificate does not match its expected hash 2026N/A return _(
"Certificate %s has been modified on disk. Its hash " 2026N/A """Exception used when a chain of trust is rooted in an untrusted 2026N/A self-signed certificate.""" 2026N/A return _(
"Chain was rooted in an untrusted self-signed " 2026N/A """Exception used when a chain of trust can not be established between 2026N/A the leaf certificate and a trust anchor.""" 2026N/A s = _(
"The following problems were encountered:\n") + \
2026N/A return _(
"The certificate which issued this " 2026N/A "certificate:%(subj)s could not be found. The issuer " 2026N/A """Exception used when a chain of trust contains a revoked certificate. 2026N/A return _(
"This certificate was revoked:%(cert)s for this " 2026N/A """Exception used when a signature could not be verified by the 2026N/A return _(
"A signature in %(pfmri)s could not be " 2026N/A "this reason:\n%(reason)s\nThe signature's hash is " 2026N/A return _(
"The signature with this signature value:\n" 2026N/A "%(sigval)s\n could not be verified for this reason:\n" 2026N/A """Exception used when signatures were required but none were found.""" 2026N/A return _(
"The policy for %(pub_str)s requires " 2026N/A "signatures to be present but no signature was " 2026N/A "found in %(fmri_str)s.") % \
2026N/A return _(
"The policy for %(pub_str)s requires signatures to be " 2026N/A "present but no signature was found.") % {
2026N/A """Exception used when a signature policy required names to be seen 2026N/A return _(
"The policy for %(pub_str)s requires certain " 2026N/A "CNs to be seen in a chain of trust. The following " 2026N/A "required names couldn't be found for this " 2026N/A "package:%(fmri_str)s.\n%(missing)s") % \
2026N/A return _(
"The policy for %(pub_str)s requires certain CNs to " 2026N/A "be seen in a chain of trust. The following required names " 2026N/A """Exception used when a certificate in the chain of trust uses a 2026N/A critical extension pkg5 doesn't understand.""" 2026N/A return _(
"The certificate whose subject is %(cert)s could not " 2026N/A "because it uses a critical extension that pkg5 cannot " 2026N/A "handle yet.\nExtension name:%(name)s\nExtension " 2026N/A """Exception used when a property was set to an invalid value.""" 926N/A """Base exception class for all certificate exceptions.""" 926N/A """Used to indicate that a certificate has expired.""" 926N/A return _(
"Certificate '%(cert)s' for publisher " 926N/A "'%(pub)s' needed to access '%(uri)s', " 926N/A "has expired. Please install a valid " 926N/A return _(
"Certificate '%(cert)s' for publisher " 926N/A "'%(pub)s', has expired. Please install a valid " 926N/A return _(
"Certificate '%(cert)s', needed to access " 926N/A "'%(uri)s', has expired. Please install a valid " 926N/A return _(
"Certificate '%s' has expired. Please install a " 926N/A """Used to indicate that a certificate has expired.""" 926N/A return _(
"Certificate '%(cert)s' for publisher " 926N/A "'%(pub)s', needed to access '%(uri)s', " 926N/A "will expire in '%(days)s' days.") % {
926N/A return _(
"Certificate '%(cert)s' for publisher " 926N/A "'%(pub)s' will expire in '%(days)s' days.") % {
926N/A return _(
"Certificate '%(cert)s', needed to access " 926N/A "'%(uri)s', will expire in '%(days)s' days.") % {
926N/A return _(
"Certificate '%(cert)s' will expire in " 926N/A """Used to indicate that a certificate is invalid.""" 926N/A return _(
"Certificate '%(cert)s' for publisher " 926N/A "'%(pub)s', needed to access '%(uri)s', is " 926N/A return _(
"Certificate '%(cert)s' for publisher " 926N/A return _(
"Certificate '%(cert)s' needed to access " 1254N/A """Used to indicate that a key could not be found.""" 1254N/A return _(
"Unable to locate key '%(key)s' for " 1254N/A "publisher '%(pub)s' needed to access " 1254N/A return _(
"Unable to locate key '%(key)s' for publisher " 1254N/A return _(
"Unable to locate key '%(key)s' needed to " 926N/A """Used to indicate that a certificate could not be found.""" 926N/A return _(
"Unable to locate certificate " 926N/A "'%(cert)s' for publisher '%(pub)s' needed " 926N/A "to access '%(uri)s'.") % {
926N/A return _(
"Unable to locate certificate '%(cert)s' for " 926N/A return _(
"Unable to locate certificate '%(cert)s' " 926N/A "needed to access '%(uri)s'.") % {
926N/A """Used to indicate that a certificate is not yet valid (future 926N/A return _(
"Certificate '%(cert)s' for publisher " 926N/A "'%(pub)s', needed to access '%(uri)s', " 926N/A "has a future effective date.") % {
926N/A return _(
"Certificate '%(cert)s' for publisher " 926N/A "'%(pub)s' has a future effective date.") % {
926N/A return _(
"Certificate '%(cert)s' needed to access " 926N/A "'%(uri)s' has a future effective date.") % {
926N/A return _(
"Certificate '%s' has a future effective date.") % \
2028N/A """This exception is used when the server returns a line which the 1100N/A client cannot parse correctly.""" 1337N/A """This exception is used when a file was given as an argument but 1337N/A no such file could be found.""" 1352N/A """Base exception class for all manifest exceptions.""" 1352N/A """Used to indicate that the Manifest signatures are not valid.""" 1352N/A return _(
"The signature data for the manifest of the " 1352N/A return _(
"The signature data for the manifest is not valid.")
1736N/A """Used to indicate that one or more exceptions were encountered. 1736N/A This is intended for use with where multiple exceptions for multiple 1736N/A files are encountered and the errors have been condensed into a 1736N/A single exception and re-raised. One example case would be rmtree() 1370N/A return _(
"there is already an image at: %s.\nTo override, use " 2097N/A """Used to indicate that the image configuration is invalid.""" 2097N/A return _(
"The configuration data for the image located at " 1370N/A return _(
"the specified image path is not empty: %s.\nTo " 2073N/A """Converts the provided exception into an ApiException equivalent if 2073N/A possible. Returns a new exception object if converted or the original 2073N/A 'ignored_errors' is an optional list of errno values for which None