Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns true if the given error is a constraint error.
func IsErrLocked ¶
IsErrLocked returns true if the error is locked, or a busy error, then we can't have a extended error code. In those cases, we just return early and prevent error unwrapping for common cases.
func IsErrRetryable ¶
IsErrRetryable returns true if the given error might be transient and the interaction can be safely retried. See: https://github.com/canonical/go-dqlite/v2/issues/220
func IsError ¶
IsError reports if the any type passed to it is a database driver error in Juju. The purpose of this function is so that our domain error masking can assert if a specific error needs to be hidden from layers above that of the domain/state.
func IsErrorTarget ¶
IsErrorTarget reports if the any type passed to it is a database driver error.
func IsExtendedErrorCode ¶
IsExtendedErrorCode returns true if the given error is a dqlite error with the given code. Note: ErrNo means error number, not no error.
Types ¶
This section is empty.