#NEWLINE# def __new__( cls , func_name ) : #NEWLINE# #INDENT# win_error = ctypes . WinError ( ) #NEWLINE# api_error = super ( Kernel32Error , cls ) . __new__ ( cls ) #NEWLINE# api_error . api_name = func_name #NEWLINE# api_error . winerror = win_error . winerror #NEWLINE# api_error . strerror = win_error . strerror #NEWLINE# api_error . args = ( func_name , func_name . winerror , win_error . strerror ) #NEWLINE# return api_error