This commit is contained in:
Matthew Dillon 2015-10-02 16:20:07 -07:00
parent a880fdea82
commit efb0cc13fa
41 changed files with 569 additions and 386 deletions

View file

@ -3,5 +3,6 @@ package errors
import "errors"
var (
ExpiredToken = errors.New("this token has expired")
// ErrExpiredToken when expired token.
ErrExpiredToken = errors.New("this token has expired")
)

View file

@ -3,6 +3,8 @@ package errors
import "errors"
var (
CharacteristicNotFound = errors.New("Characteristic not found")
CharacteristicNotUpdated = errors.New("Characteristic not updated")
// ErrCharacteristicNotFound when not found.
ErrCharacteristicNotFound = errors.New("Characteristic not found")
// ErrCharacteristicNotUpdated when not updated.
ErrCharacteristicNotUpdated = errors.New("Characteristic not updated")
)

View file

@ -3,5 +3,6 @@ package errors
import "errors"
var (
MustProvideOptions = errors.New("Must provide necessary options")
// ErrMustProvideOptions when missing options.
ErrMustProvideOptions = errors.New("Must provide necessary options")
)

View file

@ -3,5 +3,6 @@ package errors
import "errors"
var (
MeasurementNotFound = errors.New("Measurement not found")
// ErrMeasurementNotFound when not found.
ErrMeasurementNotFound = errors.New("Measurement not found")
)

View file

@ -3,6 +3,8 @@ package errors
import "errors"
var (
SpeciesNotFound = errors.New("Species not found")
SpeciesNotUpdated = errors.New("Species not updated")
// ErrSpeciesNotFound when not found.
ErrSpeciesNotFound = errors.New("Species not found")
// ErrSpeciesNotUpdated when not updated.
ErrSpeciesNotUpdated = errors.New("Species not updated")
)

View file

@ -3,6 +3,8 @@ package errors
import "errors"
var (
StrainNotFound = errors.New("Strain not found")
StrainNotUpdated = errors.New("Strain not updated")
// ErrStrainNotFound when not found.
ErrStrainNotFound = errors.New("Strain not found")
// ErrStrainNotUpdated when not updated.
ErrStrainNotUpdated = errors.New("Strain not updated")
)

View file

@ -3,5 +3,6 @@ package errors
import "errors"
var (
SourceNotByteSlice = errors.New("Scan source was not []byte")
// ErrSourceNotByteSlice when not a byte-slice.
ErrSourceNotByteSlice = errors.New("Scan source was not []byte")
)

View file

@ -3,9 +3,14 @@ package errors
import "errors"
var (
UserNotFound = errors.New("No user found")
UserNotUpdated = errors.New("Count 0")
UserMissingEmail = errors.New("Missing email")
InvalidEmailOrPassword = errors.New("Invalid email or password")
EmailAddressTaken = errors.New("Email address is already registered")
// ErrUserNotFound when not found.
ErrUserNotFound = errors.New("No user found")
// ErrUserNotUpdated when not updated.
ErrUserNotUpdated = errors.New("Count 0")
// ErrUserMissingEmail when missing email.
ErrUserMissingEmail = errors.New("Missing email")
// ErrInvalidEmailOrPassword when invalid login credentials.
ErrInvalidEmailOrPassword = errors.New("Invalid email or password")
// ErrEmailAddressTaken when email already registered.
ErrEmailAddressTaken = errors.New("Email address is already registered")
)