# eric6.E5Gui.E5ErrorMessage

Module implementing a specialized error message dialog.

### Global Attributes

__msgHandlerDialog
__origMsgHandler

### Classes

E5ErrorMessage | Class implementing a specialized error message dialog.

### Functions

editMessageFilters | Module function to edit the list of message filters.
messageHandler | Module function handling messages.
messageHandlerInstalled | Module function to check, if a message handler was installed.
qtHandler | Module function to install an E5ErrorMessage dialog as the global message handler.

## E5ErrorMessage

Class implementing a specialized error message dialog.

### Derived from

QErrorMessage

### Class Attributes

None

### Class Methods

None

### Methods

E5ErrorMessage | Constructor
__filterMessage | Private method to filter messages.
editMessageFilters | Public method to edit the list of message filters.
showMessage | Public method to show a message.

### Static Methods

None

#### E5ErrorMessage (Constructor)

E5ErrorMessage(parent=None)

Constructor

parent
  reference to the parent widget (QWidget)

#### E5ErrorMessage.__filterMessage

__filterMessage(message)

Private method to filter messages.

message
  message to be checked (string)

Returns:
  flag indicating that the message should be filtered out (boolean)

#### E5ErrorMessage.editMessageFilters

editMessageFilters()

Public method to edit the list of message filters.

#### E5ErrorMessage.showMessage

showMessage(message, msgType="")

Public method to show a message.

message
  error message to be shown (string)
msgType
  type of the error message (string)

Up

## editMessageFilters

editMessageFilters()

Module function to edit the list of message filters.

Up

## messageHandler

messageHandler(msgType, *args)

Module function handling messages.

msgType
  type of the message (integer, QtMsgType)
args
  message handler arguments, for PyQt4 message to be shown (bytes), for PyQt5 context information (QMessageLogContext) and message to be shown (bytes)

Up

## messageHandlerInstalled

messageHandlerInstalled()

Module function to check, if a message handler was installed.

Returns:
  flag indicating an installed message handler (boolean)

Up

## qtHandler

qtHandler()

Module function to install an E5ErrorMessage dialog as the global message handler.

Returns:
  reference to the message handler dialog (E5ErrorMessage)

Up