Skip to content

Conversation

@jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Jan 7, 2019

Following up on bd961bb, a further review of the Exceptions being thrown showed some inconsistencies.

As far as I can see, Exceptions thrown by sniffs/utility methods when, for instance, a wrong token is passed, should be RuntimeExceptions, while Exceptions thrown by the Tokenizer classes should be TokenizerExceptions.

In a number of places this was applied inconsistently. This has now been fixed.

Aside from that, for quite a number of methods, the Exception being thrown has now been documented.

As far as I can see, Exceptions thrown by sniffs/utility methods when, for instance, a wrong token is passed, should be `RuntimeException`s, while Exceptions thrown by the `Tokenizer` classes should be `TokenizerException`s.

In a number of places this was applied inconsistently. This has now been fixed.

Aside from that, for quite a number of methods, the `Exception` being thrown has now been documented.
@jrfnl
Copy link
Contributor Author

jrfnl commented May 23, 2019

As discussed in #2189, this commit is included within #2456.

@gsherwood gsherwood merged commit 35b8bd7 into squizlabs:master Sep 9, 2019
@gsherwood
Copy link
Member

Thanks a lot for fixing these up.

@jrfnl jrfnl deleted the feature/exception-consistency branch September 9, 2019 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants