Struct rtlola_reporting::Handler [−][src]
pub struct Handler { /* fields omitted */ }
Expand description
A handler is responsible for emitting warnings and errors
Implementations
Creates a new Handler
input_path
refers to the path of the input file
input_content
refers to the content of the input file
Creates a new handler without a path.
Emits a single Diagnostic to the terminal
Emits a RtLolaError to the console
Returns true if an error has occurred
Returns the number of emitted errors
Returns the number of emitted warnings
Emits a warning referring to the code span span
with and optional label span_label
that is printed next to the code fragment