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§

source

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.

Implementations on Foreign Types§

source§

impl IntoPrologException for Error

source§

fn into_prolog_exception<'a, T: QueryableContextType>( self, context: &'a Context<'_, T> ) -> PrologResult<Term<'a>>

Implementors§