ICU-745/Refactor internal/session to new domain errors (#877)

* Refactor internal/sessions to use domain errors
This commit is contained in:
Louis Ruch authored and GitHub committed 2021-02-03 16:25:56 -08:00
1 parent 81785e139f
commit 178d4efa64
24 files changed
+404 -329

No files matched your search

-8
View File
@@ -8,12 +8,4 @@ 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")
)