Enum spark_connect_rs::errors::SparkError
source · pub enum SparkError {
NotYetImplemented(String),
ExternalError(Box<dyn Error + Sync + Send>),
AnalysisException(String),
IoError(String, Error),
ArrowError(ArrowError),
InvalidConnectionUrl(String),
}Expand description
Different Spark types
Variants§
NotYetImplemented(String)
Returned when functionality is not yet available.
ExternalError(Box<dyn Error + Sync + Send>)
AnalysisException(String)
IoError(String, Error)
ArrowError(ArrowError)
InvalidConnectionUrl(String)
Implementations§
source§impl SparkError
impl SparkError
sourcepub fn from_external_error(error: Box<dyn Error + Sync + Send>) -> SparkError
pub fn from_external_error(error: Box<dyn Error + Sync + Send>) -> SparkError
Wraps an external error in an SparkError.
Trait Implementations§
source§impl Debug for SparkError
impl Debug for SparkError
source§impl Display for SparkError
impl Display for SparkError
source§impl Error for SparkError
impl Error for SparkError
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<ArrowError> for SparkError
impl From<ArrowError> for SparkError
source§fn from(error: ArrowError) -> SparkError
fn from(error: ArrowError) -> SparkError
Converts to this type from the input type.
source§impl From<Error> for SparkError
impl From<Error> for SparkError
source§fn from(error: Error) -> SparkError
fn from(error: Error) -> SparkError
Converts to this type from the input type.
source§impl From<Error> for SparkError
impl From<Error> for SparkError
source§fn from(value: Error) -> SparkError
fn from(value: Error) -> SparkError
Converts to this type from the input type.
source§impl From<FromUtf8Error> for SparkError
impl From<FromUtf8Error> for SparkError
source§fn from(error: FromUtf8Error) -> SparkError
fn from(error: FromUtf8Error) -> SparkError
Converts to this type from the input type.
source§impl<W> From<IntoInnerError<W>> for SparkErrorwhere
W: Write,
impl<W> From<IntoInnerError<W>> for SparkErrorwhere
W: Write,
source§fn from(error: IntoInnerError<W>) -> SparkError
fn from(error: IntoInnerError<W>) -> SparkError
Converts to this type from the input type.
source§impl From<Status> for SparkError
impl From<Status> for SparkError
source§fn from(status: Status) -> SparkError
fn from(status: Status) -> SparkError
Converts to this type from the input type.
source§impl From<Utf8Error> for SparkError
impl From<Utf8Error> for SparkError
source§fn from(error: Utf8Error) -> SparkError
fn from(error: Utf8Error) -> SparkError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SparkError
impl !RefUnwindSafe for SparkError
impl Send for SparkError
impl Sync for SparkError
impl Unpin for SparkError
impl !UnwindSafe for SparkError
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
Mutably borrows from an owned value. Read more
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request