deb-murano/meta/io.murano/Classes/Exception.yaml
Stan Lagun 61f84d03ca Adds ability to throw/catch/rethrow exceptions in MuranoPL
The syntax is
Try:
  - Throw: ns:name   #can be list of names to simulate type hierarchy
     Message: message   #optional
     Cause: $sourceException   #optional
     Extra: { 'someExtra': 'data' }    #optional
Catch:
   - With: ns:name #can be list of names
   - As: exception   #optional
   - Do:
        - Rethrow:
Else:    #optional
    - else block
Finally:    #optional
     - finally block

Improves stack traces to contain information about Python native stack frames and macro blocks

Change-Id: I2e2bcc5e1a0da5f9489d73525f8b3fa99cc0220c
Implements: blueprint muranopl-exception-handling
2014-06-12 20:48:27 +04:00

30 lines
378 B
YAML

Namespaces:
=: io.murano
Name: Exception
Properties:
name:
Contract: $.string()
Usage: Runtime
message:
Contract: $.string()
Usage: Runtime
stackTrace:
Contract: $
Usage: Runtime
extra:
Contract: {}
Usage: Runtime
nativeException:
Contract: $
Usage: Runtime
cause:
Contract: $.class(Exception)
Usage: Runtime