hoaproject / exception Goto Github PK
View Code? Open in Web Editor NEWThe Hoa\Exception library.
Home Page: https://hoa-project.net/
The Hoa\Exception library.
Home Page: https://hoa-project.net/
Dependabot can't resolve your PHP dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for hoa/event dev-master -> satisfiable by hoa/event[dev-master].
- hoa/event dev-master requires hoa/exception dev-master -> satisfiable by hoa/exception[dev-master] but these conflict with your requirements or minimum-stability.
Problem 2
- Installation request for hoa/test dev-master -> satisfiable by hoa/test[dev-master].
- hoa/test dev-master requires hoa/cli dev-master -> satisfiable by hoa/cli[dev-master] but these conflict with your requirements or minimum-stability.
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
You can mention @dependabot in the comments below to contact the Dependabot team.
Dependabot can't resolve your PHP dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for hoa/event dev-master -> satisfiable by hoa/event[dev-master].
- hoa/event dev-master requires hoa/exception dev-master -> satisfiable by hoa/exception[dev-master] but these conflict with your requirements or minimum-stability.
Problem 2
- Installation request for hoa/test dev-master -> satisfiable by hoa/test[dev-master].
- hoa/test dev-master requires hoa/cli dev-master -> satisfiable by hoa/cli[dev-master] but these conflict with your requirements or minimum-stability.
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
You can mention @dependabot in the comments below to contact the Dependabot team.
Dependabot can't resolve your PHP dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires hoa/event dev-master -> satisfiable by hoa/event[dev-master].
- hoa/event dev-master requires hoa/exception dev-master -> found hoa/exception[1.0.0+no-version-set] but it does not match the constraint.
Problem 2
- Root composer.json requires hoa/test dev-master -> satisfiable by hoa/test[dev-master].
- hoa/test dev-master requires hoa/cli dev-master -> found hoa/cli[dev-master, 3.x-dev (alias of dev-master)] but it does not match your minimum-stability.
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
Dependabot can't resolve your PHP dependency files.
As a result, Dependabot couldn't update your dependencies.
The error Dependabot encountered was:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires hoa/event dev-master -> satisfiable by hoa/event[dev-master].
- hoa/event dev-master requires hoa/exception dev-master -> found hoa/exception[1.0.0+no-version-set] but it does not match the constraint.
Problem 2
- Root composer.json requires hoa/test dev-master -> satisfiable by hoa/test[dev-master].
- hoa/test dev-master requires hoa/cli dev-master -> found hoa/cli[dev-master, 3.x-dev (alias of dev-master)] but it does not match your minimum-stability.
If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.
Hello,
In hoa_test.php
I have the following part:
$previous = new \Hoa\Exception\Exception('Hello previous.');
$exception = new \Hoa\Exception\Exception('Hello %s!', 0, ['world'], $previous);
$exception->raise(true);
\Hoa\Event\Event::getEvent('hoa://Event/Exception')->attach(function (\Hoa\Event\Bucket $bucket) {
$exception = $bucket->getData();
\var_dump($exception);
});
when I run $ php hoa_test.php
I don't receive any output...
Am I doing something wrong?
Thanks!
PS: echo $exception->raise(true);
works fine, the part that does not work for me is the event listener.
I've a little situation when working with an Event handler on Exception and play with Group.
All the hoa exceptions are dispatch to event during execution of constructor.
that mean when working with Group, the exception are dispatch as like it was common exception.
And it's not what we should expect when working with Group, we may want analyse or raise the group in one time, and when child exceptions are in.
Maybe we could send event when Group::commitTransaction
are call ?
and do not send event in constructor when it's Exception\Group
instance,
but that mean it's a BC-Break
From now i found this great solution.
Exception\Idle
as child of GroupException\Group
when 0 === $exception->getStackSize()
Exception\Group
with $exception->send()
when you're setup.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.