Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateError ¶
type StateError struct {
// contains filtered or unexported fields
}
StateError are errors indicating invalid state. Type is used to differentiate between network, i/o, marshaling, bad usage etc. errors and actual state errors. You can use type assertion or type switch to check for type.
func NewStateError ¶
func NewStateError(err error) StateError
NewStateError creates a new StateError.
Click to show internal directories.
Click to hide internal directories.