SherpaErr

exception sherpa.utils.err.SherpaErr(edict, *args)[source] [edit on github]

Base class for all Sherpa exceptions.

Parameters:
  • edict (dict) – The error dictionary. The keys are the label for the message and the value is a format string - using percent formats - that is applied.

  • args – The arguments that define the message. If args is not set then a generic message is used, otherwise the first element is used to identify the format string from edict, to which the remaining arguments are applied. If no match exists then the first argument is used as the error message.