

class TM1pyException(Exception):
    """ The default exception for TM1py

    """
    def __init__(self, response, status_code, reason, headers):
        self._response = response
        self._status_code = status_code
        self._reason = reason
        self._headers = headers

    @property
    def status_code(self):
        return self._status_code

    @property
    def reason(self):
        return self.reason

    @property
    def response(self):
        return self._response

    @property
    def headers(self):
        return self._headers

    def __str__(self):
        return "Text: {} Status Code: {} Reason: {}".format(self._response, self._status_code, self._reason)



class TM1pyException(Exception):
    """ The default exception for TM1py

    """
    def __init__(self, response, status_code, reason, headers):
        self._response = response
        self._status_code = status_code
        self._reason = reason
        self._headers = headers

    @property
    def status_code(self):
        return self._status_code

    @property
    def reason(self):
        return self.reason

    @property
    def response(self):
        return self._response

    @property
    def headers(self):
        return self._headers

    def __str__(self):
        return "Text: {} Status Code: {} Reason: {} Headers {}".format(self._response,
                                                                self._status_code,
                                                                self._reason,
                                                                self._headers)

Update to expand exception string
Update to expand exception string

  
  
  class TM1pyException(Exception):
      """ The default exception for TM1py
  
      """
      def __init__(self, response, status_code, reason, headers):
          self._response = response
          self._status_code = status_code
          self._reason = reason
          self._headers = headers
  
      @property
      def status_code(self):
          return self._status_code
  
      @property
      def reason(self):
          return self.reason
  
      @property
      def response(self):
          return self._response
  
      @property
      def headers(self):
          return self._headers
  
      def __str__(self):
-         return "Text: {} Status Code: {} Reason: {}".format(self._response, self._status_code, self._reason)
+         return "Text: {} Status Code: {} Reason: {} Headers {}".format(self._response,
+                                                                 self._status_code,
+                                                                 self._reason,
+                                                                 self._headers)
  
Update to expand exception string
## Code Before:


class TM1pyException(Exception):
    """ The default exception for TM1py

    """
    def __init__(self, response, status_code, reason, headers):
        self._response = response
        self._status_code = status_code
        self._reason = reason
        self._headers = headers

    @property
    def status_code(self):
        return self._status_code

    @property
    def reason(self):
        return self.reason

    @property
    def response(self):
        return self._response

    @property
    def headers(self):
        return self._headers

    def __str__(self):
        return "Text: {} Status Code: {} Reason: {}".format(self._response, self._status_code, self._reason)

## Instruction:
Update to expand exception string
## Code After:


class TM1pyException(Exception):
    """ The default exception for TM1py

    """
    def __init__(self, response, status_code, reason, headers):
        self._response = response
        self._status_code = status_code
        self._reason = reason
        self._headers = headers

    @property
    def status_code(self):
        return self._status_code

    @property
    def reason(self):
        return self.reason

    @property
    def response(self):
        return self._response

    @property
    def headers(self):
        return self._headers

    def __str__(self):
        return "Text: {} Status Code: {} Reason: {} Headers {}".format(self._response,
                                                                self._status_code,
                                                                self._reason,
                                                                self._headers)
