ICU-745/Refactor internal/session to new domain errors (#877)
* Refactor internal/sessions to use domain errors
This commit is contained in:
1 parent
81785e139f
commit
178d4efa64
24 files changed
+404
-329
No files matched your search
@@ -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")
|
||||
)
|
||||
Reference in new issue
Block a user