Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Oct 20, 2023
1 parent 1fddbe2 commit 89ce867
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jwk/jwk.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ func (e *continueParseError) Error() string {
return "continue parsing"
}

// IsContinueParseError returns true if the given error is a ContinueParseError.
//
// When a ContinueParseError is returned from a KeyParser, it means that while
// the key parsing operation was not successful, we should keep
// trying to parse using the remaining parsers
func IsContiueParseError(err error) bool {
return errors.Is(err, &continueParseError{})
}
Expand Down

0 comments on commit 89ce867

Please sign in to comment.