pub enum ClingoError {
NulError(NulError),
Utf8Error(Utf8Error),
FFIError {
msg: &'static str,
},
InternalError {
msg: &'static str,
code: ErrorCode,
last: &'static str,
},
ExternalError(ExternalError),
}Expand description
ClingoError in the rust wrapper, like null pointers or failed matches of C enums.
Includes internal error from the clingo library.
Note: Errors can only be recovered from if explicitly mentioned; most functions do not provide strong exception guarantees. This means that in case of errors associated objects cannot be used further.
Variants§
Trait Implementations§
Source§impl Debug for ClingoError
impl Debug for ClingoError
Source§impl Display for ClingoError
impl Display for ClingoError
Source§impl Error for ClingoError
impl Error for ClingoError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<ExternalError> for ClingoError
impl From<ExternalError> for ClingoError
Source§fn from(source: ExternalError) -> Self
fn from(source: ExternalError) -> Self
Converts to this type from the input type.
Source§impl From<NulError> for ClingoError
impl From<NulError> for ClingoError
Auto Trait Implementations§
impl Freeze for ClingoError
impl RefUnwindSafe for ClingoError
impl Send for ClingoError
impl Sync for ClingoError
impl Unpin for ClingoError
impl UnwindSafe for ClingoError
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