def execute(self, context): stacktrace = stack_trace.create_stack_trace(context, False) cause = None if self._cause: cause = helpers.evaluate(self._cause, context).get_property('nativeException') raise dsl_exception.MuranoPlException( list( self._resolve_names(helpers.evaluate(self._names, context), context)), helpers.evaluate(self._message, context), stacktrace, self._extra, cause)
def execute(self, context, murano_class): stacktrace = yaql_functions.new('io.murano.StackTrace', context, includeNativeFrames=False) cause = None if self._cause: cause = helpers.evaluate(self._cause, context).get_property('nativeException') raise dsl_exception.MuranoPlException( list( self._resolve_names(helpers.evaluate(self._names, context), context)), helpers.evaluate(self._message, context), stacktrace, self._extra, cause)