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
sourceimpl Debug for ParseDsnError
impl Debug for ParseDsnError
sourceimpl Display for ParseDsnError
impl Display for ParseDsnError
sourceimpl Error for ParseDsnError
impl Error for ParseDsnError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ParseProjectIdError> for ParseDsnError
impl From<ParseProjectIdError> for ParseDsnError
sourcefn from(source: ParseProjectIdError) -> Self
fn from(source: ParseProjectIdError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ParseDsnError
impl Send for ParseDsnError
impl Sync for ParseDsnError
impl Unpin for ParseDsnError
impl UnwindSafe for ParseDsnError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more