Exemple #1
0
def create_stack_trace(context, include_native_frames=True):
        stacktrace = yaql_integration.call_func(
            context, 'new', 'io.murano.StackTrace',
            includeNativeFrames=include_native_frames)
        executor = helpers.get_executor(context)
        return dsl.MuranoObjectInterface(
            stacktrace, executor)
Exemple #2
0
def logger(context, logger_name):
    """Instantiate Logger"""
    log = yaql_integration.call_func(context,
                                     'new',
                                     'io.murano.system.Logger',
                                     logger_name=logger_name)
    return log
Exemple #3
0
def create_stack_trace(context, include_native_frames=True):
    stacktrace = yaql_integration.call_func(
        context,
        'new',
        'io.murano.StackTrace',
        includeNativeFrames=include_native_frames)
    return dsl.MuranoObjectInterface.create(stacktrace)
 def _wrap_internal_exception(self, exception, context, name):
     obj = yaql_integration.call_func(context, 'new', 'io.murano.Exception')
     obj.set_property('name', name)
     obj.set_property('message', exception.message)
     obj.set_property('stackTrace', exception.stacktrace)
     obj.set_property('extra', exception.extra)
     obj.set_property('nativeException', exception)
     return obj
 def _wrap_internal_exception(self, exception, context, name):
     obj = yaql_integration.call_func(context, 'new', 'io.murano.Exception')
     obj.set_property('name', name)
     obj.set_property('message', exception.message)
     obj.set_property('stackTrace', exception.stacktrace)
     obj.set_property('extra', exception.extra)
     obj.set_property('nativeException', exception)
     return obj
 def _wrap_internal_exception(self, exception, context, name):
     obj = yaql_integration.call_func(context, "new", "io.murano.Exception")
     obj.set_property("name", name)
     obj.set_property("message", exception.message)
     obj.set_property("stackTrace", exception.stacktrace)
     obj.set_property("extra", exception.extra)
     obj.set_property("nativeException", exception)
     return obj
def logger(context, logger_name):
    """Instantiate Logger"""
    log = yaql_integration.call_func(
        context, 'new', 'io.murano.system.Logger',
        logger_name=logger_name)
    return log