
for convenience. Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/suika/trunk@822 f0ae65fe-ee39-954e-97ec-027ff2717ef4
18 lines
314 B
Go
18 lines
314 B
Go
package bare
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
"reflect"
|
|
)
|
|
|
|
var ErrInvalidStr = errors.New("String contains invalid UTF-8 sequences")
|
|
|
|
type UnsupportedTypeError struct {
|
|
Type reflect.Type
|
|
}
|
|
|
|
func (e *UnsupportedTypeError) Error() string {
|
|
return fmt.Sprintf("Unsupported type for marshaling: %s\n", e.Type.String())
|
|
}
|