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 ¶
func (d ErrorHTTPStatusCode) Equal(o diag.Diagnostic) bool
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.
Click to show internal directories.
Click to hide internal directories.