Struct github::error::InternalError [-] [+] [src]

pub struct InternalError {
    pub msg: String,
}

InternalError will be given in the form of Result in case something went wrong within this Client Library. It replaces panics so that you can freely choose the behaviour. Please file an issue and/or resolve the bug yourself when you get this error.

Fields

msg

msg is the actual description of the problem. future versions of this library might store extra info where it would help the debugging of an error.

Methods

impl InternalError

fn new<T>(msg: &str) -> Result<T, ClientError>

Simple way to construct a Result<T, ClientError> based on information known for an internal error.

Trait Implementations

impl Display for InternalError

Allowing InternalError to be printed via {} in a controlled manner.

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for InternalError

fn fmt(&self, __arg_0: &mut Formatter) -> Result