Module rstats::error

source ·
Expand description

Custom error RError

Enums§

  • Custom RStats Error Parameter is future proofing, so that any type of argument may be returned. Currently only messages of type and <&str> are used

Functions§

  • Convenience function for building RError::ArithError(String)
    from payload message, which can be either literal &str or String. String allows splicing in values of variables for debugging, using format!
  • Convenience function for building RError::DataError(String)
    from payload message, which can be either literal &str or String. String allows splicing in values of variables for debugging, using format!
  • Convenience function for building RError::NoDataError(String)
    from payload message, which can be either literal &str or String. String allows splicing in values of variables for debugging, using format!
  • Convenience function for building RError::ArithError(String)
    from payload message, which can be either literal &str or String. String allows splicing in values of variables for debugging, using format!

Type Aliases§

  • Shorthand type for returned errors with String (message) payload