errorex

package
v1.2.1-rc Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 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 ErrBadRequest

type ErrBadRequest struct {
	ErrorMsg string `json:"error_msg"`
}

ErrBadRequest represents the bad request error

func NewErrBadRequest

func NewErrBadRequest(errorMsg string) *ErrBadRequest

NewErrBadRequest is the constructor of ErrBadRequest

func (*ErrBadRequest) Error

func (e *ErrBadRequest) Error() string

Error implements error interface

func (*ErrBadRequest) ToLogicalResponse

func (e *ErrBadRequest) ToLogicalResponse() (*logical.Response, error)

ToLogicalResponse converts error to logical response model

Jump to

Keyboard shortcuts

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