#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# 'Returns a sting representation of the exception.\n\n        The actual result depends on policy set in the initializer\n        :meth:`HDF5ExtError.__init__`.\n\n        .. versionadded:: 2.4\n\n        ' #NEWLINE# verbose = bool ( ( self . _h5bt_policy in ( 'VERBOSE' , 'verbose' ) ) ) #NEWLINE# if ( verbose and self . h5backtrace ) : #NEWLINE# #INDENT# bt = '\n' . join ( [ 'HDF5 error back trace\n' , self . format_h5_backtrace ( ) , 'End of HDF5 error back trace' ] ) #NEWLINE# if ( ( len ( self . args ) == 1 ) and isinstance ( self . args [ 0 ] , six . string_types ) ) : #NEWLINE# #INDENT# msg = super ( HDF5ExtError , self ) . __str__ ( ) #NEWLINE# msg = ( '%s\n\n%s' % ( bt , msg ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . h5backtrace [ ( - 1 ) ] [ ( - 1 ) ] : #NEWLINE# #INDENT# msg = ( '%s\n\n%s' % ( bt , self . h5backtrace [ ( - 1 ) ] [ ( - 1 ) ] ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg = bt #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# msg = super ( HDF5ExtError , self ) . __str__ ( ) #NEWLINE# #UNINDENT# return msg