Enum sentry_types::ParseDsnError
source · pub enum ParseDsnError {
InvalidUrl,
InvalidScheme,
NoUsername,
NoProjectId,
InvalidProjectId(ParseProjectIdError),
}
Expand description
Represents a dsn url parsing error.
Variants§
InvalidUrl
raised on completely invalid urls
InvalidScheme
raised the scheme is invalid / unsupported.
NoUsername
raised if the username (public key) portion is missing.
NoProjectId
raised the project is is missing (first path component)
InvalidProjectId(ParseProjectIdError)
raised the project id is invalid.
Trait Implementations§
source§impl Debug for ParseDsnError
impl Debug for ParseDsnError
source§impl Display for ParseDsnError
impl Display for ParseDsnError
source§impl Error for ParseDsnError
impl Error for ParseDsnError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseProjectIdError> for ParseDsnError
impl From<ParseProjectIdError> for ParseDsnError
source§fn from(source: ParseProjectIdError) -> Self
fn from(source: ParseProjectIdError) -> Self
Converts to this type from the input type.