Skip to content

Support Custom Error types #39

Description

@jsimnz

You should user specified error types, instead of errors.New(...). It would make for much better error handling.

ie. instead of errors.New("No record found")
use:
type NoRecordError string

func (e NoRecordError) Error() string {
return "No record found"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions