@@ -2,24 +2,25 @@ package errors
22
33// Error messages
44var (
5- NilProfileErr = "supplied profile cannot be nil"
6- NoPrefixErr = "ARK must start with 'ark:/'"
7- NaanTooShortErr = "NAAN must be at least 5 digits long"
8- NaanProfileErr = "The supplied NAAN is not allowed for the supplied profile"
9- NoObjIdErr = "The ARK must contain an object identifier"
10- InvalidObjIdErr = "The object identifier and qualifier is not valid"
11- ArkValFailed = "ARK validation failed"
12- EolFoundErr = "character for EOL found in cell"
13- BadHeaderErr = "could not retrieve CSV header: %s"
14- FieldNotFoundErr = "required field `%s` was not found"
15- FieldDataNotFoundErr = "data for required field `%s` was not found"
16- UnknownProfileErr = "unknown profile `%s`"
17- ProfileConfigErr = "supplied profile has objTypes and notObjTypes set: %s"
18- NoHostDir = "a HOST_DIR must be set"
19- FileNotExist = "the file path given does not exist: %s"
20- UrlFormatErr = "license URL is not in a proper format (check for HTTPS)"
21- UrlConnectErr = "problem connecting to license URL"
22- UrlReadErr = "problem reading body of license URL"
23- TypeWhitespaceError = "field contains invalid characters (e.g., spaces, line breaks)"
24- TypeValueError = "object type field doesn't contain valid value"
5+ NilProfileErr = "supplied profile cannot be nil"
6+ NoPrefixErr = "ARK must start with 'ark:/'"
7+ NaanTooShortErr = "NAAN must be at least 5 digits long"
8+ NaanProfileErr = "The supplied NAAN is not allowed for the supplied profile"
9+ NoObjIdErr = "The ARK must contain an object identifier"
10+ InvalidObjIdErr = "The object identifier and qualifier is not valid"
11+ ArkValFailed = "ARK validation failed"
12+ EolFoundErr = "character for EOL found in cell"
13+ BadHeaderErr = "could not retrieve CSV header: %s"
14+ FieldNotFoundErr = "required field `%s` was not found"
15+ FieldDataNotFoundErr = "data for required field `%s` was not found"
16+ UnknownProfileErr = "unknown profile `%s`"
17+ ProfileConfigErr = "supplied profile has objTypes and notObjTypes set: %s"
18+ NoHostDir = "a HOST_DIR must be set"
19+ FileNotExist = "the file path given does not exist: %s"
20+ UrlFormatErr = "license URL is not in a proper format (check for HTTPS)"
21+ UrlConnectErr = "problem connecting to license URL"
22+ UrlReadErr = "problem reading body of license URL"
23+ TypeWhitespaceError = "field contains invalid characters (e.g., spaces, line breaks)"
24+ TypeValueError = "object type field doesn't contain valid value"
25+ VisibilityValueError = "ovisibility field doesn't contain valid value"
2526)
0 commit comments