mirror of
https://github.com/number571/go-peer.git
synced 2026-09-13 18:45:44 +05:00
20 lines
338 B
Go
20 lines
338 B
Go
package queue
|
|
|
|
const (
|
|
errPrefix = "pkg/anonymity/queue = "
|
|
)
|
|
|
|
type SQueueError struct {
|
|
str string
|
|
}
|
|
|
|
func (err *SQueueError) Error() string {
|
|
return errPrefix + err.str
|
|
}
|
|
|
|
var (
|
|
ErrRunning = &SQueueError{"queue running"}
|
|
ErrQueueLimit = &SQueueError{"queue limit"}
|
|
ErrEncryptMessage = &SQueueError{"encrypt message"}
|
|
)
|