You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
349 B
20 lines
349 B
package messagelog
|
|
|
|
import "fmt"
|
|
|
|
type ErrInvalidMessage struct {
|
|
message string
|
|
}
|
|
|
|
func (err *ErrInvalidMessage) Error() string {
|
|
return fmt.Sprintf("invalid message format: %s", err.message)
|
|
}
|
|
|
|
type ErrTopicNotFound struct {
|
|
topic string
|
|
}
|
|
|
|
func (err *ErrTopicNotFound) Error() string {
|
|
return fmt.Sprintf("topic `%s` not found", err.topic)
|
|
}
|