You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
boundary/internal/session/error.go

20 lines
660 B

package session
import "errors"
// Errors returned from this package may be tested against these errors
// with errors.Is.
var (
// ErrInvalidStateForOperation indicates the session's state does not allow the
// operation.
ErrInvalidStateForOperation = errors.New("state is invalid for operation")
// ErrSessionNotPending indicates that a session cannot be activated
// because it's not in a pending state.
ErrSessionNotPending = errors.New("session is not in a pending state")
// ErrOpenConnection indicates that a session can not be terminated because
// it has open connections.
ErrOpenConnection = errors.New("session has open connections")
)