~mapopa/flamerobin/master

« back to all changes in this revision

Viewing changes to src/metadata/exception.h

  • Committer: Michael Hieke
  • Date: 2004-11-22 11:34:42 UTC
  • Revision ID: git-v1:8153b493d66ee7aae55e7b34e0d7bddacf4999ef
Initial revision

svn path=/trunk/flamerobin/; revision=13

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  The contents of this file are subject to the Initial Developer's Public
 
3
  License Version 1.0 (the "License"); you may not use this file except in
 
4
  compliance with the License. You may obtain a copy of the License here:
 
5
  http://www.flamerobin.org/license.html.
 
6
 
 
7
  Software distributed under the License is distributed on an "AS IS"
 
8
  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 
9
  License for the specific language governing rights and limitations under
 
10
  the License.
 
11
 
 
12
  The Original Code is FlameRobin (TM).
 
13
 
 
14
  The Initial Developer of the Original Code is Nando Dessena.
 
15
 
 
16
  Portions created by the original developer
 
17
  are Copyright (C) 2004 Nando Dessena.
 
18
 
 
19
  All Rights Reserved.
 
20
 
 
21
  Contributor(s):
 
22
*/
 
23
 
 
24
//
 
25
//
 
26
//
 
27
//
 
28
//------------------------------------------------------------------------------
 
29
#ifndef FR_EXCEPTION_H
 
30
#define FR_EXCEPTION_H
 
31
 
 
32
#include "metadataitem.h"
 
33
 
 
34
class YException: public YxMetadataItem
 
35
{
 
36
public:
 
37
    virtual std::string getCreateSqlTemplate() const;
 
38
    virtual const std::string getTypeName() const;
 
39
 
 
40
    std::string getMessage();
 
41
    int getNumber();
 
42
    std::string getAlterSql();
 
43
    YException();
 
44
    void loadProperties(bool force = false);
 
45
private:
 
46
    bool propertiesLoadedM;
 
47
    std::string messageM;
 
48
    int numberM;
 
49
};
 
50
//------------------------------------------------------------------------------
 
51
#endif // FR_EXCEPTION_H