You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
349 B
Go
25 lines
349 B
Go
package eventstreamapi
|
|
|
|
import "fmt"
|
|
|
|
type messageError struct {
|
|
code string
|
|
msg string
|
|
}
|
|
|
|
func (e messageError) Code() string {
|
|
return e.code
|
|
}
|
|
|
|
func (e messageError) Message() string {
|
|
return e.msg
|
|
}
|
|
|
|
func (e messageError) Error() string {
|
|
return fmt.Sprintf("%s: %s", e.code, e.msg)
|
|
}
|
|
|
|
func (e messageError) OrigErr() error {
|
|
return nil
|
|
}
|