2017-02-07 05:55:37 +01:00
|
|
|
"""
|
|
|
|
categories: Types,Exception
|
2017-12-12 07:13:39 +01:00
|
|
|
description: Exception.__init__ method does not exist.
|
|
|
|
cause: Subclassing native classes is not fully supported in MicroPython.
|
|
|
|
workaround: Call using ``super()`` instead::
|
|
|
|
|
2018-03-15 05:49:38 +01:00
|
|
|
class A(Exception):
|
|
|
|
def __init__(self):
|
|
|
|
super().__init__()
|
2017-02-07 05:55:37 +01:00
|
|
|
"""
|
2020-03-23 03:26:08 +01:00
|
|
|
|
|
|
|
|
2017-02-07 05:55:37 +01:00
|
|
|
class A(Exception):
|
|
|
|
def __init__(self):
|
|
|
|
Exception.__init__(self)
|
|
|
|
|
2020-03-23 03:26:08 +01:00
|
|
|
|
2017-02-07 05:55:37 +01:00
|
|
|
a = A()
|