Trait swipl::context::IntoPrologException
source · pub trait IntoPrologException {
// Required method
fn into_prolog_exception<'a, T: QueryableContextType>(
self,
context: &'a Context<'_, T>
) -> PrologResult<Term<'a>>;
}
Expand description
Trait for turning errors into prolog exceptions
Required Methods§
sourcefn into_prolog_exception<'a, T: QueryableContextType>(
self,
context: &'a Context<'_, T>
) -> PrologResult<Term<'a>>
fn into_prolog_exception<'a, T: QueryableContextType>( self, context: &'a Context<'_, T> ) -> PrologResult<Term<'a>>
Turns this error into a prolog exception using the given context.
The result is a Term
containing the prolog exception.
Object Safety§
This trait is not object safe.