2 #ifndef BRUKEREXCEPTION_H
3 #define BRUKEREXCEPTION_H
5 #include "brukerSystem.h"
10 class creaBruker_EXPORT BrukerSizeException: public std::exception
13 BrukerSizeException( const std::string& message,
17 : m_message(message), m_lgt(lgt), m_expected_lgt(expected_lgt)
20 ~BrukerSizeException() throw() {}
22 virtual const char* what() const throw() {
23 return m_message.c_str();
26 int getFoundLgt() const throw() {
30 int getExpectedLgt() const throw() {
31 return m_expected_lgt;
35 std::string m_message;
42 class creaBruker_EXPORT BrukerInitException: public std::exception
45 BrukerInitException( const std::string& message
50 ~BrukerInitException() throw() {}
52 virtual const char* what() const throw() {
53 return m_message.c_str();
58 std::string m_message;
62 class creaBruker_EXPORT BrukerHopelessException: public std::exception
65 BrukerHopelessException( const std::string& message
70 ~BrukerHopelessException() throw() {}
72 virtual const char* what() const throw() {
73 return m_message.c_str();
78 std::string m_message;