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.
17 lines
381 B
17 lines
381 B
6 years ago
|
package errors
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
// InternalError error
|
||
|
type InternalError string
|
||
|
|
||
|
// Error message
|
||
|
func (ie InternalError) Error() string {
|
||
|
return fmt.Sprintf("internal error, %s", string(ie))
|
||
|
}
|
||
|
|
||
|
// InternalErrorf function creates an instance of InternalError
|
||
|
func InternalErrorf(format string, params ...interface{}) error {
|
||
|
return InternalError(fmt.Sprintf(format, params...))
|
||
|
}
|