Skip to content

Determine what how we want to report errors to the user when they give bad values #8

Description

@Insomniak47

We don't seem to have a good set of exceptions that mean some of the things we would want to report back to the user. We should consider either - reading additional docs and then determining which of the built ins is most appropriate for our use case. Came up in #7

if

  public CommandBuilder(string name)
        {
            if (string.IsNullOrWhiteSpace(name))
                throw new ArgumentException("parameter cannot be null or whitespace", nameof(name));

Should be an "ArgumentException" and "ArgumentOutOfRangeException" or a "FormatException". I'm sure this will come up more often so we should maybe just get it sorted sooner rather than later

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions