Giter Site home page Giter Site logo

Comments (4)

jbrisbin avatar jbrisbin commented on July 23, 2024

Exceptions are generally reported into a Reactor by the exception type. There is a Selector class that has a helper function Fn.T that is analogous to the SpEL function of the same name. If you register a Consumer using that Selector, it will do an isAssingableFrom check.

So if you assign an error handler like:

reactor.on(Fn.T(IllegalArgumentException.class), new Consumer<Event<IllegalArgumentException>>() { ... });

That will catch errors that are reported like:

reactor.on(e.getClass(), Fn.event(e));

Which happens in a lot of places in the code.

You can also catch exceptions hierarchically by registering a class higher in the type hierarchy (like Throwable etc...).

from reactor.

smaldini avatar smaldini commented on July 23, 2024

I think we could relate it to #23

from reactor.

smaldini avatar smaldini commented on July 23, 2024

Might add traceErrors() to ReactorSpec and then reroute to Environment.rootReactor()

from reactor.

ifesdjeen avatar ifesdjeen commented on July 23, 2024

If I understand correctly, this logic is already implemented.

from reactor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.