pub struct SessionError {
pub message: String,
pub kind: SessionErrorKind,
pub stdout: Option<String>,
pub parts: Vec<(Verbosity, String)>,
pub annotation: Option<String>,
pub preface: Box<[String]>,
}Fields§
§message: String§kind: SessionErrorKind§stdout: Option<String>A line Composer writes on STDOUT next to the error ($io->write
after $io->writeError), as UpdateCommand does for a temporary
constraint that misses the root’s.
parts: Vec<(Verbosity, String)>The message as Composer writes it, piece by piece with each piece’s
level (IOInterface::QUIET for the headline of an unsolvable set and
the --no-dev warning, the default level for the problems). Empty
when the whole message has one level, the caller’s.
annotation: Option<String>What Composer hands to GithubActionError::emit for this error,
when it is not the message itself: the headline and the problems of
an unsolvable set ($err."\n".$prettyProblem), without the
--no-dev warning or the dev extraction’s two hint lines.
preface: Box<[String]>Lines Composer has written before it throws, which the error must
not lose: the warnings a degraded repository held while the list
filter of install’s verification ran (ComposerRepository writes
them as it loads, before the exception of another fetch).
Implementations§
Trait Implementations§
Source§impl Debug for SessionError
impl Debug for SessionError
Source§impl Display for SessionError
impl Display for SessionError
Source§impl Error for SessionError
impl Error for SessionError
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<FilterError> for SessionError
A filter error, on the other hand, can be either.
impl From<FilterError> for SessionError
A filter error, on the other hand, can be either.
Source§fn from(e: FilterError) -> SessionError
fn from(e: FilterError) -> SessionError
Source§impl From<LoadError> for SessionError
impl From<LoadError> for SessionError
Source§fn from(e: LoadError) -> SessionError
fn from(e: LoadError) -> SessionError
Source§impl From<PlatformError> for SessionError
impl From<PlatformError> for SessionError
Source§fn from(e: PlatformError) -> SessionError
fn from(e: PlatformError) -> SessionError
Source§impl From<PolicyError> for SessionError
impl From<PolicyError> for SessionError
Source§fn from(e: PolicyError) -> SessionError
fn from(e: PolicyError) -> SessionError
Source§impl From<PoolError> for SessionError
impl From<PoolError> for SessionError
Source§fn from(e: PoolError) -> SessionError
fn from(e: PoolError) -> SessionError
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
Source§impl From<RootError> for SessionError
impl From<RootError> for SessionError
Source§fn from(e: RootError) -> SessionError
fn from(e: RootError) -> SessionError
Auto Trait Implementations§
impl Freeze for SessionError
impl RefUnwindSafe for SessionError
impl Send for SessionError
impl Sync for SessionError
impl Unpin for SessionError
impl UnsafeUnpin for SessionError
impl UnwindSafe for SessionError
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