17 lines
225 B
Go
17 lines
225 B
Go
|
|
package types
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
)
|
||
|
|
|
||
|
|
type HandledError struct {
|
||
|
|
Message string
|
||
|
|
InnerError error
|
||
|
|
}
|
||
|
|
|
||
|
|
// Allow HandledError to satisfy error interface.
|
||
|
|
func (err HandledError) Error() string {
|
||
|
|
return fmt.Sprintf(err.Message)
|
||
|
|
}
|
||
|
|
|