
class DisplayError(Exception):
    pass


class DisplayError(Exception):
    def __init__(self, message):
        super(DisplayError, self).__init__(message)
        self.message = message

Add message attribute to DisplayError
Add message attribute to DisplayError

The .message attribute was dropped from the base exception class
in py3.  Since we use it, set it directly.

Change-Id: I27124c6d00216b335351ef6985ddf869f2fd1366

  
  class DisplayError(Exception):
-     pass
+     def __init__(self, message):
+         super(DisplayError, self).__init__(message)
+         self.message = message
  
Add message attribute to DisplayError
## Code Before:

class DisplayError(Exception):
    pass

## Instruction:
Add message attribute to DisplayError
## Code After:

class DisplayError(Exception):
    def __init__(self, message):
        super(DisplayError, self).__init__(message)
        self.message = message
