errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: Apache-2.0 Imports: 1 Imported by: 37

Documentation

Overview

Package errors defines the common errors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsArgumentError added in v0.0.5

func IsArgumentError(err error) bool

func IsArgumentNilError added in v0.0.5

func IsArgumentNilError(err error) bool

func NewArgumentError

func NewArgumentError(argumentName, message string) error

NewArgumentError creates a new ArgumentError error

func NewArgumentErrorWithError added in v0.0.6

func NewArgumentErrorWithError(argumentName, message string, err error) error

NewArgumentError creates a new ArgumentError error

func NewArgumentNilError

func NewArgumentNilError(argumentName, message string) error

NewArgumentNilError creates a new ArgumentNilError error

func NewArgumentNilErrorWithError added in v0.0.6

func NewArgumentNilErrorWithError(argumentName, message string, err error) error

NewArgumentNilErrorWithError creates a new ArgumentNilError error

Types

type ArgumentError

type ArgumentError struct {
	ArgumentName string
	Message      string
	Err          error
}

ArgumentError indicates that the provided input argument is invalid.

func (ArgumentError) Error

func (e ArgumentError) Error() string

Error returns message for the TenantAlreadyExistsError error type Returns the error nessage

func (ArgumentError) Unwrap added in v0.0.5

func (e ArgumentError) Unwrap() error

type ArgumentNilError

type ArgumentNilError struct {
	ArgumentName string
	Message      string
	Err          error
}

ArgumentNilError indicates that the provided input argument is invalid.

func (ArgumentNilError) Error

func (e ArgumentNilError) Error() string

Error returns message for the TenantAlreadyExistsError error type Returns the error nessage

func (ArgumentNilError) Unwrap added in v0.0.5

func (e ArgumentNilError) Unwrap() error

Jump to

Keyboard shortcuts

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