Trait prql_compiler::IntoErrorMessage
source · pub trait IntoErrorMessage {
fn into_error_message(
self,
source_id: &str,
source: &str,
color: bool
) -> ErrorMessage;
fn to_location(&self, source: &Source) -> Option<SourceLocation>;
fn into_error_message_and_output(
self,
source_id: &str,
source: Source,
color: bool
) -> (String, String);
}
Required Methods§
fn into_error_message(
self,
source_id: &str,
source: &str,
color: bool
) -> ErrorMessage
fn to_location(&self, source: &Source) -> Option<SourceLocation>
fn into_error_message_and_output(
self,
source_id: &str,
source: Source,
color: bool
) -> (String, String)
Implementations on Foreign Types§
source§impl IntoErrorMessage for Error
impl IntoErrorMessage for Error
source§fn into_error_message(
self,
source_id: &str,
source: &str,
color: bool
) -> ErrorMessage
fn into_error_message(
self,
source_id: &str,
source: &str,
color: bool
) -> ErrorMessage
Convert error into human-readable message and error location.