customdiags

package
v0.98.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasConflictError

func HasConflictError(diags diag.Diagnostics) bool

HasConflictError checks if a diagnostic has a specific error code.

Types

type ErrorHTTPStatusCode

type ErrorHTTPStatusCode struct {
	HTTPStatusCode int
	// contains filtered or unexported fields
}

ErrorHTTPStatusCode is an error diagnostic that stored the error code.

func NewErrorHTTPStatusCode

func NewErrorHTTPStatusCode(summary string, detail string, statusCode int) ErrorHTTPStatusCode

NewErrorHTTPStatusCode returns a new error severity diagnostic with the given summary, detail and error code.

func (ErrorHTTPStatusCode) Detail

func (d ErrorHTTPStatusCode) Detail() string

Detail returns the diagnostic detail.

func (ErrorHTTPStatusCode) Equal

Equal returns true if the other diagnostic is equivalent.

func (ErrorHTTPStatusCode) Severity

func (d ErrorHTTPStatusCode) Severity() diag.Severity

Severity returns the diagnostic severity.

func (ErrorHTTPStatusCode) Summary

func (d ErrorHTTPStatusCode) Summary() string

Summary returns the diagnostic summary.

Jump to

Keyboard shortcuts

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