pub struct RepoError(pub String, pub RepoErrorKind);Expand description
Repository error: transport (TransportException in Composer: network,
missing file, 404 where it is fatal) or data (JSON, constraint, shape of
a response); only the former fall under ignore-unreachable.
Tuple Fields§
§0: String§1: RepoErrorKindImplementations§
Trait Implementations§
Source§impl Error for RepoError
impl Error for RepoError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<RepoError> for PoolError
The nature travels with the message: a repository that could not be
REACHED is Composer’s TransportException, whose exit code it rewrites to
100, and the pool is the layer where that distinction used to be lost.
impl From<RepoError> for PoolError
The nature travels with the message: a repository that could not be
REACHED is Composer’s TransportException, whose exit code it rewrites to
100, and the pool is the layer where that distinction used to be lost.
Source§impl From<RepoError> for FilterError
The nature travels, as it does out of the pool: a list that could not be
fetched is not a list that could not be read.
impl From<RepoError> for FilterError
The nature travels, as it does out of the pool: a list that could not be fetched is not a list that could not be read.
Source§fn from(e: RepoError) -> FilterError
fn from(e: RepoError) -> FilterError
Source§impl From<RepoError> for SessionError
A repository error keeps its nature: Composer rewrites a
TransportException’s code to Installer::ERROR_TRANSPORT_EXCEPTION
(100) before Symfony turns it into an exit code, so a failure to FETCH
something does not exit like a failure to understand it.
impl From<RepoError> for SessionError
A repository error keeps its nature: Composer rewrites a
TransportException’s code to Installer::ERROR_TRANSPORT_EXCEPTION
(100) before Symfony turns it into an exit code, so a failure to FETCH
something does not exit like a failure to understand it.
Source§fn from(e: RepoError) -> SessionError
fn from(e: RepoError) -> SessionError
Auto Trait Implementations§
impl Freeze for RepoError
impl RefUnwindSafe for RepoError
impl Send for RepoError
impl Sync for RepoError
impl Unpin for RepoError
impl UnsafeUnpin for RepoError
impl UnwindSafe for RepoError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more