Flutter Engine
The Flutter Engine
Classes | Functions
scripts.databasebuilder Namespace Reference

Classes

class  Build
 
class  DatabaseBuilder
 
class  DatabaseBuilderOptions
 

Functions

def format_exception (e)
 

Function Documentation

◆ format_exception()

def scripts.databasebuilder.format_exception (   e)

Definition at line 72 of file databasebuilder.py.

72def format_exception(e):
73 exception_list = traceback.format_stack()
74 exception_list = exception_list[:-2]
75 exception_list.extend(traceback.format_tb(sys.exc_info()[2]))
76 exception_list.extend(
77 traceback.format_exception_only(sys.exc_info()[0],
78 sys.exc_info()[1]))
79
80 exception_str = "Traceback (most recent call last):\n"
81 exception_str += "".join(exception_list)
82 # Removing the last \n
83 exception_str = exception_str[:-1]
84
85 return exception_str
86
87
88# Compile IDL using Blink's IDL compiler.
static SkString join(const CommandLineFlags::StringArray &)
Definition: skpbench.cpp:741