pub enum ByggisErrors {
    NetworkError,
    DirectoryNotCreated,
    ByggisFileNotCreated,
    ProblemNotFound,
    ByggisFileNotFound,
    TestsNotFound,
    MainNotFound,
    CompileTimeError(String),
    ConfigFileNotFound,
    InvalidToken,
    MainFailure,
}
Expand description

Error enum containing all the errors that can be returned from the modules

Variants

NetworkError

Reflects errors connecting to kattis

DirectoryNotCreated

Reflects error scenario where directory could not be created

ByggisFileNotCreated

Reflects error scenario where byggis file cannot be created

ProblemNotFound

Reflects 404 from kattis when searching for the problem

ByggisFileNotFound

Scenario where byggis file is not found

TestsNotFound

Scenario where the tests in the file is not found

MainNotFound

Reflects scenario where main file cant be found in the directory

CompileTimeError(String)

Reflects scenario where the users code cant compile

ConfigFileNotFound

Scenario where byggis cannot find a config file to read token from

InvalidToken

Scenario where kattis refuses the given token

MainFailure

Scenario where byggis cannot create the main file

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.