Slice Tools
  • Home
  • SourceForge Page


  • libFoundation
  • Home
  • Class Hierarchy
  • Class List
  • Class Members
  • Examples


  • SourceForge.net Logo
     

    Exception Class Reference

    #include <Exceptions.hh>

    Inheritance diagram for Exception:

    ConfigFileError FileIOError OptionsError CircularReferenceError ConfigFileLineTooLong DuplicateSectionError InvalidConfigNameError InvalidConfiguration MalformedSubstitutionError UnresolvedSubstitutionError UnableToOpenError UnableToReadError ExitProgramNormally InvalidOptionError MissingRequiredParameterError List of all members.

    Detailed Description

    Base class for all Exceptions.
    Examples:

    example-configfile.cc, example-logging.cc, example-minimal.cc, and example-options.cc.


    Public Member Functions

     Exception (std::string msg, std::string module)
    std::string getErrorMsg () const
     Gets the error message.

    std::string getModule () const
     Gets the module name.

    void setRawErrorMsg (std::string msg)
     Sets the error message.

    void setModule (std::string module)

    Static Public Member Functions

    std::string quote (std::string msg)
     Static method to enclose a string in quotes "...".


    Constructor & Destructor Documentation

    Exception::Exception std::string  msg,
    std::string  module
     


    Member Function Documentation

    std::string Exception::getErrorMsg  )  const
     

    Gets the error message.

    std::string Exception::getModule  )  const
     

    Gets the module name.

    std::string Exception::quote std::string  msg  )  [static]
     

    Static method to enclose a string in quotes "...".

    void Exception::setModule std::string  module  ) 
     

    void Exception::setRawErrorMsg std::string  msg  ) 
     

    Sets the error message.


    The documentation for this class was generated from the following files: