# eric6.E5Gui.E5ErrorMessage

Module implementing a specialized error message dialog.

### Global Attributes

_defaultFilters
_filterSettings
_msgHandlerDialog
_origMsgHandler

### Classes

E5ErrorMessage | Class implementing a specialized error message dialog.

### Functions

editMessageFilters | Module function to edit the list of message filters.
filterMessage | Module function to filter messages.
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
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 (QWidget)
  reference to the parent widget

#### E5ErrorMessage.editMessageFilters

editMessageFilters()

Public method to edit the list of message filters.

#### E5ErrorMessage.showMessage

showMessage(message, msgType="")

Public method to show a message.

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

Up

## editMessageFilters

editMessageFilters()

Module function to edit the list of message filters.

Up

## filterMessage

filterMessage(message)

Module function to filter messages.

message (str)
  message to be checked

Returns:
  flag indicating that the message should be filtered out

Return Type:
  bool

Up

## messageHandler

messageHandler(msgType, *args)

Module function handling messages.

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

Up

## messageHandlerInstalled

messageHandlerInstalled()

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

Returns:
  flag indicating an installed message handler

Return Type:
  bool

Up

## qtHandler

qtHandler()

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

Returns:
  reference to the message handler dialog

Return Type:
  E5ErrorMessage

Up