{"modulePath":"github.com/codeready-toolchain/devcluster","version":"v0.0.0-20220126183047-e35233a30c3d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Functions\n\n```go\nfunc AbortWithError(ctx *gin.Context, code int, err error, details string)\n```\nAbortWithError stops the chain, writes the status code and the given error\n\n```go\nfunc IsInternalServerError(err error) bool\n```\n\n```go\nfunc IsNotFound(err error) bool\n```\n\n## Types\n\n```go\ntype Error struct {\n\tStatus  string `json:\"status\"`\n\tCode    int    `json:\"code\"`\n\tMessage string `json:\"message\"`\n\tDetails string `json:\"details\"`\n}\n```\n\n```go\nfunc NewInternalServerError(message, details string) *Error\n```\n\n```go\nfunc NewNotFoundError(message, details string) *Error\n```\n\n```go\nfunc (e Error) Error() string\n```\n\n","path":"github.com/codeready-toolchain/devcluster/pkg/errors","name":"errors","synopsis":"","isRedistributable":true}
