source: SMSSender/lib/libdatatypes/src/exceptions/elibraryloadexception.h @ 71:415b45c71663

3.0
Last change on this file since 71:415b45c71663 was 71:415b45c71663, checked in by Sämy Zehnder <saemy.zehnder@…>, 12 years ago
  • Reorganized all the libraries. libinterfaces and libgateways are removed now and libdatatypes contains now all these files.
File size: 711 bytes
Line 
1/*
2 * ELibraryLoadException.h
3 *
4 *  Created on: Jan 4, 2010
5 *      Author: saemy
6 */
7
8#ifndef ELIBRARYLOADEXCEPTION_H_
9#define ELIBRARYLOADEXCEPTION_H_
10
11#include <QString>
12
13#include "eexception.h"
14
15namespace Library {
16    class ELoadException: EException {
17    public:
18        enum Purpose {
19            FileNotFound,
20            InvalidLibraryFile,
21            VersionMismatch,
22            Unknown
23        };
24
25        explicit ELoadException(const Purpose& purpose, const QString& message = "")
26            : EException(message)
27            , purpose_ (purpose)
28        {}
29
30        Purpose purpose(){ return purpose_; }
31
32    private:
33        Purpose purpose_;
34    };
35}
36
37#endif /* ELIBRARYLOADEXCEPTION_H_ */
Note: See TracBrowser for help on using the repository browser.