-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ErrCustomMessagePending error and channel to wait for custom mess…
…age to be available to set
- Loading branch information
Showing
7 changed files
with
141 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package types | ||
|
||
import "errors" | ||
|
||
var ( | ||
// ErrCustomMessageMissing is returned by SetCustomMessage when called with a nil message. | ||
ErrCustomMessageMissing = errors.New("CustomMessage is nil") | ||
|
||
// ErrCustomCapabilityNotSupported is returned by SetCustomMessage when called with | ||
// message that has a capability that is not specified as supported by the client. | ||
ErrCustomCapabilityNotSupported = errors.New("CustomCapability of CustomMessage is not supported") | ||
|
||
// ErrCustomMessagePending is returned by SetCustomMessage when called before the previous | ||
// message has been sent. | ||
ErrCustomMessagePending = errors.New("custom message already set") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters