You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewLicenseParserException(String.format("Invalid license addition %s. Must be either a listed license exception or be prefixed with 'AdditionRef-'", token));
454
456
}
455
457
}
456
458
457
459
/**
458
-
* Converts a string token into its equivalent license
459
-
* checking for a listed license
460
+
* Converts a string token into its equivalent license - either a listed license or a LicenseRef
460
461
* @param token Token to translate to the equivalent license
461
462
* @param store Store for the licenses
462
463
* @param customLicenseUriPrefix Prefix to use for any created local licenses or additions
thrownewLicenseParserException(String.format("Unexpected listed license exception %s. Must be a listed license or a LicenseRef", token));
507
+
} else {
508
+
thrownewLicenseParserException(String.format("Unknown license %s. Must be a listed license or have the syntax %s", token, SpdxConstantsCompatV2.LICENSE_ID_PATTERN));
thrownewLicenseParserException(String.format("Unexpected listed license exception %s. Must be a listed license or a LicenseRef", token));
593
+
} else {
594
+
thrownewLicenseParserException(String.format("Unknown license %s. Must be a listed license or have the syntax %s", token, SpdxConstantsCompatV2.LICENSE_ID_PATTERN));
0 commit comments