serializer.*UnsupportedFormatError.Error   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 0
dl 0
loc 2
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 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