Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | package serializer |
||
2 | |||
3 | import ( |
||
4 | "errors" |
||
5 | "fmt" |
||
6 | ) |
||
7 | |||
8 | var ErrUnserializableData = errors.New("unserializable data") |
||
9 | |||
10 | type UnsupportedFormatError struct { |
||
11 | Format string |
||
12 | } |
||
13 | |||
14 | func (err *UnsupportedFormatError) Error() string { |
||
15 | 1 | return fmt.Sprintf("serialization format '%s' is not supported", err.Format) |
|
16 | } |
||
17 |