Skip to main content

Module error

Module error 

Source
Expand description

When things go wrong, we need some error handling. There are a few different types of errors in rustc_public:

  • CompilerError: This represents errors that can be raised when invoking the compiler.
  • Error: Generic error that represents the reason why a request that could not be fulfilled.

Re-exportsยง

use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Display; ๐Ÿ”’
use std::fmt::Formatter; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::io; ๐Ÿ”’
use rustc_public_bridge::bridge; ๐Ÿ”’
pub(crate) use error; ๐Ÿ”’

Macrosยง

error ๐Ÿ”’

Structsยง

Error
A generic error to represent an API request that cannot be fulfilled.

Enumsยง

CompilerError
An error type used to represent an error that has already been reported by the compiler.