Discover Packages
github.com/Fs02/grimoire
errors
package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Jan 6, 2019
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package errors wraps driver and changeset error as a grimoire's error.
type Error struct {
Message string `json:"message"`
Field string `json:"field,omitempty"`
Code int `json:"code,omitempty"`
}
Error defines information about grimoire's error.
NewUnexpected creates an error.
NewWithCode creates an error with code.
Error prints error message.
const (
Unexpected Kind = iota
Changeset
NotFound
UniqueConstraint
ForeignKeyConstraint
CheckConstraint
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.