Menu

#7 accessing fault name and data for default handlers

Jolie Trunk
open
nobody
None
5
2015-03-06
2012-06-28
No

it is not possible to access the fault name and data in an install set on default

ex:

install( default => ... )

Discussion

  • Matthias Dieter Wallnöfer

    This is more about a feature request? But I guess that it cannot be moved there...

     
  • Fabrizio Montesi

    @Claudio: Did we not do something about this at some point? Is it documented?

     
  • guidiclaudio

    guidiclaudio - 2015-03-06

    Now you can access the fault name by simply get the content of the default field inside the scope. Ex:

    scope( a ) {
    install( default => println@Console( a.default )()
    }

    You can access fault data in the following way:

    a.( a.default )

    Very very very very very useful!

    I think there is not related documentation

     
  • Fabrizio Montesi

    Great! Can you please add some documentation to docs.jolie-lang.org ?

     

Log in to post a comment.