xml

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package xml declares the error codes and the sentinels of the XML codec, internal/service/data/codec/xml — range 0.3.3.* (ADR 0005 service/data/codec/xml block).

The codes live in the core at the path that mirrors the package emitting them (ADR 0160 §2) and keep the values they were allocated with: the LL byte 3 records the layer that allocated the range, not the directory that declares it today (ADR 0160 §3). Nothing here encodes or decodes — the mechanism, and the constructors that attach a failure's detail, stay in the service package.

Package xml — the sentinel *errs.Error values, one per code. Each Reason derives from its var name or from its Code constant (ADR 0020); the Public and Private texts are the ones the service package always emitted, so moving the declaration changed no rendering.

Index

Constants

View Source
const CodeXMLMarshalFailed errs.Code = 0x00_03_03_01 // 0.3.3.1

CodeXMLMarshalFailed identifies a failure inside encoding/xml.Marshal.

View Source
const CodeXMLUnmarshalFailed errs.Code = 0x00_03_03_02 // 0.3.3.2

CodeXMLUnmarshalFailed identifies a failure inside encoding/xml.Unmarshal.

Variables

View Source
var (
	// MarshalFailed wraps a failure from encoding/xml.Marshal.
	MarshalFailed = errs.Define(CodeXMLMarshalFailed, "MARSHAL_FAILED",
		"XML encoding failed",
		"service/data/codec/xml: encoding/xml.Marshal returned an error")

	// UnmarshalFailed wraps a failure from encoding/xml.Unmarshal.
	UnmarshalFailed = errs.Define(CodeXMLUnmarshalFailed, "UNMARSHAL_FAILED",
		"XML decoding failed",
		"service/data/codec/xml: encoding/xml.Unmarshal returned an error")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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