Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for error-as-instance #201

Merged
merged 1 commit into from
Feb 19, 2021

Conversation

mristin
Copy link
Collaborator

@mristin mristin commented Feb 19, 2021

This patch allows the user to supply error as an instance of
BaseException. This is practical for cases where the error is fixed
and need not be re-instantiated on every violation.

An additional benefit is that the syntax is a bit shorter than with a
argument-less callable (one lambda: less).

This patch allows the user to supply error as an instance of
``BaseException``. This is practical for cases where the error is fixed
and need not be re-instantiated on every violation.

An additional benefit is that the syntax is a bit shorter than with a
argument-less callable (one `lambda: ` less).
@coveralls
Copy link

coveralls commented Feb 19, 2021

Coverage Status

Coverage increased (+0.01%) to 94.381% when pulling a0f2667 on mristin/Added-support-for-error-as-instance into d301ef7 on master.

@mristin mristin merged commit 477b48b into master Feb 19, 2021
@mristin mristin deleted the mristin/Added-support-for-error-as-instance branch February 19, 2021 20:12
mristin added a commit that referenced this pull request Feb 26, 2021
* Encapsulated adding contracts for integrators (#202)
* Added support for error-as-instance (#201)
* Added support for coroutine (#197)
* Added support for async (#196)
mristin added a commit that referenced this pull request Feb 26, 2021
* Encapsulated adding contracts for integrators (#202)
* Added support for error-as-instance (#201)
* Added support for coroutine (#197)
* Added support for async (#196)
@mristin mristin mentioned this pull request Feb 26, 2021
mristin added a commit that referenced this pull request Feb 26, 2021
* Encapsulated adding contracts for integrators (#202)
* Added support for error-as-instance (#201)
* Added support for coroutine (#197)
* Added support for async (#196)
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