errors

package
v0.0.0-...-48c86bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code        *gardenv1beta1.ErrorCode
	Description string
}

Error is a representation of an error (a description along with a well-defined error code).

func New

func New(err error) *Error

New creates a new Error object from a given Golang error. It extracts 'CODE:<some-code>' from the beginning of the error description. An error without a CODE is also valid.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL