-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
26 lines (21 loc) · 824 Bytes
/
Copy patherrors.go
File metadata and controls
26 lines (21 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package amqppool
var (
ErrAllChannelsInUse = &AllChannelsInUseError{message: "failed in try get a reusable channel, all are in use"}
ErrUseReleaseChannel = &UseReleaseChannelError{message: "Tried to use a reusable channel that was already released"}
)
//AllChannelsInUseError an error of when is tried to get a reusable channel, but was hit the maximum quantity of pool.
type AllChannelsInUseError struct {
message string
}
//Error implementing the error interface
func (err *AllChannelsInUseError) Error() string {
return err.message
}
//UseReleaseChannelError an error of when is tried to use a reusable channel but was released back to pool.
type UseReleaseChannelError struct {
message string
}
//Error implementing the error interface
func (err *UseReleaseChannelError) Error() string {
return err.message
}