Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
!! TERROR !!
Terror allows you to define your errors/exceptions in a pretty run-of-the-mill style DSL.
Reasons Terror exists:
How to use Terror:
For times where all you need is a pretty name to raise.
exceptions :exceptionally, "exceptional"
If you need a little more control over your exceptions you can use a block. The methods inside the block become camel-cased exceptions where the method name is the exception name.
exceptions do
there_is_no_exception "You did wrong. There is no exception!"
end
The argument passed to the method is the message you want to use when you raise the exception. For the example above you would do:
raise ThereIsNoException, ThereIsNoException.message
If you need even more control over your exceptions and want to add custom functionality you can pass the method a block and insert whatever code you want available for the exception.
exceptions do
my_exception do
def handle_my_exception()
return "Check that out, I can add my own methods!"
end
end
end
And, of course, all of these can be done together in the same exceptions method if you need more, or less, functionality for different exceptions.
Things I'd Like to Get Around to Doing:
That's all folks.
FAQs
Unknown package
We found that adamtanner-terror demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.