Table of Contents

Class: CustomError sam/CustomError.py

Handles the raising of customised exceptions.

Purpose: Enables exceptions other than the built-in ones to be raised, with a specified error message.

Used by: AboutDialog, ErrorHandler, Field, FileSelection, Logger, MainWindow, Model, NetLogInput, Plugin, Selector, Stream, StreamsLogInput, Table, AutoCorrelation, CDF, LinearInterpolation, PDF, Plot, Graph

Uses: None (inherits from Exception class)

Attributes: None

SRS Refs: 4.4

Author: rihoward

Date: 12/7/02

Base Classes   
Exception
Methods   
__init__
__str__
getisWarning
  __init__ 
__init__ (
        self,
        strerror,
        isWarning=0,
        )

Purpose: Creates a new instance of CustomError class, given an error message describing the exception.

Used by: AboutDialog, ErrorHandler, Field, FileSelection, Logger, MainWindow, Model, NetLogInput, Plugin, Selector, Stream, StreamsLogInput, Table, AutoCorrelation, CDF, LinearInterpolation, PDF, Plot, Graph

Uses: None

Input: strerror : string

Output: New instance of CustomError class

Preconditions: None

Postconditions: None

SRS Refs: 4.4

Author: rihoward

Date: 12/7/02

  __str__ 
__str__ ( self )

Purpose: Returns the error message associated with the exception

Used by: AboutDialog, ErrorHandler, Field, FileSelection, Logger, MainWindow, Model, NetLogInput, Plugin, Selector, Stream, StreamsLogInput, Table, AutoCorrelation, CDF, LinearInterpolation, PDF, Plot, Graph

Uses: None

Input: None

Output: __str__ : string

Preconditions: None

Postconditions: None

SRS Refs: 4.4

Author: rihoward

Date: 12/7/02

  getisWarning 
getisWarning ( self )

Purpose: Returns an integer indicating whether or not the exception should be a warning or an error. 0 = error anything else = warning.

Used by: Graph, OutputToFile

Uses: None

Input: None

Output: isWarning : int

Preconditions: None

Postconditions: None

SRS Refs: 4.4

Author: rihoward

Date: 29/10/02


Table of Contents

This document was automatically generated on Wed Oct 30 23:04:21 2002 by HappyDoc version 2.0