~dominik-burgdoerfer/libdmcc/trunk

« back to all changes in this revision

Viewing changes to dmcc/LoadException.hpp

  • Committer: Dominik Burgdörfer
  • Date: 2009-10-16 20:36:00 UTC
  • Revision ID: dominik@domachine-20091016203600-o140xwug2c00nd7n
patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * =====================================================================================
 
3
 *
 
4
 *       Filename:  LoadException.hpp
 
5
 *
 
6
 *    Description:  
 
7
 *
 
8
 *        Version:  1.0
 
9
 *        Created:  07.10.2009 17:48:37
 
10
 *       Revision:  none
 
11
 *       Compiler:  gcc
 
12
 *
 
13
 *         Author:  Dominik 'domachine' Burgdoerfer (-), dominik.burgdoerfer@gmail.com
 
14
 *        Company:  
 
15
 *
 
16
 * =====================================================================================
 
17
 */
 
18
 
 
19
 
 
20
#ifndef  LOAD_EXCEPTION_INC
 
21
#define  LOAD_EXCEPTION_INC
 
22
 
 
23
#include <stdexcept>
 
24
#include <iostream>
 
25
 
 
26
namespace dmcc {
 
27
    /**
 
28
     * Replaces the old dmcc::PluginContext::LoadException
 
29
     */
 
30
    class LoadException : public std::logic_error {
 
31
    public:
 
32
        /**
 
33
         * constructs an instance. the what arg which will be displayed,
 
34
         * after throwing
 
35
         */
 
36
        explicit LoadException(const std::string & whatArg);
 
37
    };
 
38
}
 
39
 
 
40
#endif   /* ----- #ifndef LOAD_EXCEPTION_INC  ----- */