errors

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: ISC Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(body []byte) error

Parse attempts to parse an error from the given XML response.

Types

type Panos

type Panos struct {
	Msg  string
	Code int
}

Panos is an error returned from PAN-OS.

The error contains both the error message and the code returned from PAN-OS.

func ObjectNotFound

func ObjectNotFound() Panos

ObjectNotFound returns an object not found error.

func (Panos) Error

func (e Panos) Error() string

Error returns the error message.

func (Panos) ObjectNotFound

func (e Panos) ObjectNotFound() bool

ObjectNotFound returns true if this is an object not found error.

Jump to

Keyboard shortcuts

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