{"modulePath":"github.com/xmlking/micro-starter-kit","version":"v0.3.7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Functions\n\n```go\nfunc AppError(errorCode ErrorCode, a ...interface{}) error\n```\nAppError - App specific Error\n\n```go\nfunc ValidationError(id, format string, a ...interface{}) error\n```\nValidationError - Unprocessable Entity\n\n## Types\n\n```go\ntype ErrorCode int\n```\nErrorCode for app\n\n```go\nconst (\n\t// EC1 represents there is an error1\n\tEC1 ErrorCode = iota\n\t// EC2 represents there is an error2\n\tEC2\n\t// EC3 represents there is an error3\n\tEC3\n\t// EC4 represents there is an error4\n\tEC4\n\t// SME SendMailError\n\tSME\n\t// DBE DatabaseError\n\tDBE\n\t// PSE PubSubError\n\tPSE\n)\n```\n\n```go\ntype ErrorDetail struct {\n\tID     string\n\tDetail string\n\tCode   int32\n}\n```\nErrorDetail for app\n\n","path":"github.com/xmlking/micro-starter-kit/shared/errors","name":"errors","synopsis":"","isRedistributable":true}
