{"modulePath":"github.com/maps90/cleanstack","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Types\n\n```go\ntype Error interface {\n\tError() string\n\tCode() string\n\tMessage() string\n\tSetMessage(string) Error\n\tParams() map[string]interface{}\n\tSetParams(map[string]interface{}) Error\n}\n```\nError interface represents an validation error\n\n```go\nfunc New(code, message string) Error\n```\nNew create new validation error.\n\n```go\ntype ErrorObject struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e ErrorObject) AddParam(name string, value interface{}) Error\n```\nAddParam add parameter to the error's parameters.\n\n```go\nfunc (e ErrorObject) Code() string\n```\nCode get the error's translation code.\n\n```go\nfunc (e ErrorObject) Error() string\n```\nError returns the error message.\n\n```go\nfunc (e ErrorObject) Message() string\n```\nMessage return the error's message.\n\n```go\nfunc (e ErrorObject) Params() map[string]interface{}\n```\nParams returns the error's params.\n\n```go\nfunc (e ErrorObject) SetCode(code string) Error\n```\nSetCode set the error's translation code.\n\n```go\nfunc (e ErrorObject) SetMessage(message string) Error\n```\nSetMessage set the error's message.\n\n```go\nfunc (e ErrorObject) SetParams(params map[string]interface{}) Error\n```\n\n","path":"github.com/maps90/cleanstack/pkg/errors","name":"errors","synopsis":"","isRedistributable":true}
