2017-02-06 23:55:37 -05:00
|
|
|
"""
|
|
|
|
categories: Types,Exception
|
2017-07-09 07:33:55 -04:00
|
|
|
description: User-defined attributes for builtin exceptions are not supported
|
|
|
|
cause: MicroPython is highly optimized for memory usage.
|
|
|
|
workaround: Use user-defined exception subclasses.
|
2017-02-06 23:55:37 -05:00
|
|
|
"""
|
|
|
|
e = Exception()
|
|
|
|
e.x = 0
|
|
|
|
print(e.x)
|