aboutsummaryrefslogtreecommitdiff
path: root/cvss/badkey.go
diff options
context:
space:
mode:
Diffstat (limited to 'cvss/badkey.go')
-rw-r--r--cvss/badkey.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/cvss/badkey.go b/cvss/badkey.go
new file mode 100644
index 0000000..d4bc845
--- /dev/null
+++ b/cvss/badkey.go
@@ -0,0 +1,20 @@
+package cvss
+
+// disabled for now (unused)
+// import "fmt"
+//
+// // Bad metric key error.
+// type badKey struct {
+// version Version
+// key string
+// }
+//
+// // Create new bad key error.
+// func newBadKey(version Version, key string) error {
+// return &badKey { version, key }
+// }
+//
+// // Return printable error string
+// func (e badKey) Error() string {
+// return fmt.Sprintf("invalid CVSS %s metric key: %s", e.version, e.key)
+// }