Skip to content
Permalink
v0.11.0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (13 sloc) 659 Bytes
package joe
// Error is the error type used by Joe. This allows joe errors to be defined as
// constants following https://dave.cheney.net/2016/04/07/constant-errors.
type Error string
// Error implements the "error" interface of the standard library.
func (err Error) Error() string {
return string(err)
}
// ErrNotImplemented is returned if the user tries to use a feature that is not
// implemented on the corresponding components (e.g. the Adapter). For instance,
// not all Adapter implementations may support emoji reactions and trying to
// attach a reaction to a message might return this error.
const ErrNotImplemented = Error("not implemented")