(self, reason, def_dict=None)
Create an exception.

    Args:
      reason: (str) The human readable explanation of this exception.
      def_dict: (dict) The discovery dictionary we failed on.
Create an exception.
Create an exception .
def __init__(self, reason, def_dict=None):
    """Create an exception.

    Args:
      reason: (str) The human readable explanation of this exception.
      def_dict: (dict) The discovery dictionary we failed on.
    """
    super(ApiException, self).__init__()
    self._reason = reason
    self._def_dict = def_dict
def __init__ ( self , reason , def_dict = None ) : super ( ApiException , self ) . __init__ ( ) self . _reason = reason self . _def_dict = def_dict