Help us shape the future of Go! Take the 2026 Go Developer Survey

errors

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Root = errorx.NewNamespace("onvif")

	Common = Root.NewType("common")

	Soap = Root.NewType("soap", traitSoap)

	PropMethod     = errorx.RegisterProperty("method")
	PropStatusCode = errorx.RegisterProperty("status_code")
	PropSoapCode   = errorx.RegisterProperty("soap_code")
)

Functions

func IsSoapError added in v0.0.14

func IsSoapError(err error) bool

Types

type Fault added in v0.0.14

type Fault struct {
	XMLName xml.Name    `xml:"Fault"`
	Code    FaultCode   `xml:"Code"`
	Reason  FaultReason `xml:"Reason"`
	Detail  FaultDetail `xml:"Detail"`
}

type FaultCode added in v0.0.14

type FaultCode struct {
	XMLName xml.Name          `xml:"Code"`
	Value   xsd.String        `xml:"Value"`
	Subcode *FaultCodeSubcode `xml:"Subcode"`
}

type FaultCodeSubcode added in v0.0.14

type FaultCodeSubcode struct {
	XMLName xml.Name          `xml:"Subcode"`
	Value   xsd.String        `xml:"Value"`
	Subcode *FaultCodeSubcode `xml:"Subcode"`
}

type FaultDetail added in v0.0.14

type FaultDetail struct {
	XMLName xml.Name   `xml:"Detail"`
	Text    xsd.String `xml:"Text"`
}

type FaultEnvelope added in v0.0.14

type FaultEnvelope struct {
	Header struct{} `xml:"Header"`
	Body   struct {
		Fault Fault `xml:"Fault"`
	} `xml:"Body"`
}

https://www.onvif.org/specs/core/ONVIF-Core-Specification-v1612.pdf page 26

type FaultReason added in v0.0.14

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

type FaultReasonText added in v0.0.14

type FaultReasonText struct {
	XMLName xml.Name     `xml:"Text"`
	Text    xsd.String   `xml:",chardata"`
	Lang    xsd.Language `xml:"lang,attr"`
}

Jump to

Keyboard shortcuts

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