Skip to content

Improve error handling for invalid license expressions #338

@goneall

Description

@goneall

Currently, any invalid license expression will cause an exception with a fairly generic message.

Rather than throwing an exception, we can create new class "InvalidLicenseExpression" which would contain the error message details and the original license expression string. When Verify is called, we can return a rather detailed string.

Metadata

Metadata

Assignees

Labels

error-handlingHow errors are caught, processed, and communicated

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions