amterror

package
v2.17.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAMTErrorString

func DecodeAMTErrorString(s string) error

Types

type AMTError

type AMTError struct {
	SubCode string
	Message string
	Detail  string
}

AMT WSMAN Error Response Types.

func NewAMTError

func NewAMTError(subCode, message, detail string) *AMTError

func (*AMTError) Error

func (e *AMTError) Error() string

type Action

type Action struct {
	XMLName        xml.Name `xml:"Action"`
	MustUnderstand string   `xml:"mustUnderstand,attr"`
	Value          string   `xml:",chardata"`
}

AMT WSMAN Error Response Types.

type Code

type Code struct {
	XMLName xml.Name `xml:"Code"`
	Value   string   `xml:"Value"`
	SubCode SubCode  `xml:"Subcode"`
}

AMT WSMAN Error Response Types.

type ErrorBody

type ErrorBody struct {
	XMLName xml.Name `xml:"Body"`
	Fault   Fault    `xml:"Fault"`
}

AMT WSMAN Error Response Types.

type ErrorResponse

type ErrorResponse struct {
	XMLName xml.Name  `xml:"Envelope"`
	Header  Header    `xml:"Header"`
	Body    ErrorBody `xml:"Body"`
}

AMT WSMAN Error Response Types.

type Fault

type Fault struct {
	XMLName xml.Name `xml:"Fault"`
	Code    Code     `xml:"Code"`
	Reason  Reason   `xml:"Reason"`
	Detail  string   `xml:"Detail"`
}

AMT WSMAN Error Response Types.

type Header struct {
	XMLName     xml.Name `xml:"Header"`
	To          string   `xml:"To"`
	RelatesTo   int      `xml:"RelatesTo"`
	Action      Action   `xml:"Action"`
	MessageID   string   `xml:"MessageID"`
	ResourceURI string   `xml:"ResourceURI"`
}

AMT WSMAN Error Response Types.

type Reason

type Reason struct {
	XMLName xml.Name `xml:"Reason"`
	Text    string   `xml:"Text"`
}

AMT WSMAN Error Response Types.

type SubCode

type SubCode struct {
	XMLName xml.Name `xml:"Subcode"`
	Value   string   `xml:"Value"`
}

AMT WSMAN Error Response Types.

Jump to

Keyboard shortcuts

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