Package Products :: Package ZenModel :: Module SiteError :: Class SiteError |
[hide private]
[frames] | no frames]

# Class SiteError

source code

Class Methods | [hide private]
cleanUrl(cls, errorUrl) Strip protocol and domain from the url | source code
createEmailHeader(cls, fromAddress, toAddress, subject) Create the smnp header for an error email | source code
createReport(cls, errorType, errorValue, errorTrace, errorUrl, revision, versionShort, inHtml=True, contactName=None, contactEmail=None, comments=None) Produce a summary of the given error details suitable for use in an error email (inHtml=false) or on a page (inHtml=true) | source code
sendErrorEmail(self, errorType, errorValue, errorTrace, errorUrl, revision, versionShort, contactName=None, contactEmail=None, comments=None, smtphost=None, smtpport=25, usetls=False, usr='', pwd='') Attempt to send an email to the zenoss errors email address with details of this error. | source code

Class Variables | [hide private]
| SMTP_HOST = `'mail.zenoss.com'`
| ERRORS_ADDRESS = `'errors@zenoss.com'`

Method Details | [hide private]

### sendErrorEmail(self, errorType, errorValue, errorTrace, errorUrl, revision, versionShort, contactName=None, contactEmail=None, comments=None, smtphost=None, smtpport=25, usetls=False, usr='', pwd='') Class Method | source code
Attempt to send an email to the zenoss errors email address with details of this error. Returns true if mail was sent, false otherwise.