Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
except/base64.h
Go to the documentation of this file.
1 /*! \file xstream/except/base64.h
2  *
3  * \brief exception related to base64 encode/decode, xstream::base64 namespace
4  *
5  */
6 
7 #ifndef __XSTREAM_EXCEPT_BASE64_H
8 #define __XSTREAM_EXCEPT_BASE64_H
9 
10 #include <xstream/config.h>
11 
12 #include <string>
13 #include <xstream/except.h>
14 #include <xstream/z.h>
15 
16 namespace xstream{
17  namespace base64{
18 
19 /*!
20  * \brief errors in base64 usage
21  *
22  */
24 {
25  public:
27  const std::string& w="generic error in base64"
28  )
29  :xstream::fatal_error(w){};
30  virtual std::string module() const{
31  return (xstream::fatal_error::module()+"::base64");
32  }
33 };
34 
35 /*!
36  * \brief general base64 encoding errors
37  *
38  */
39 
40 
42 {
43  public:
45 
46  virtual std::string module() const{
47  return (general_error::module()+"::encode");
48  }
49 };
50 
51 
52 /*!
53  * \brief general base64 decoding errors
54  *
55  */
56 
58 {
59  public:
61 
62  virtual std::string module() const{
63  return (general_error::module()+"::decode");
64  }
65 };
66 
67 }//namespace base64
68 }//namespace xstream
69 
70 #endif
virtual std::string module() const
describes the current library module (zlib,bzlib,base64,...)
Definition: except/base64.h:46
Main header file for exception related to xstream library.
virtual std::string module() const
describes the current library module (zlib,bzlib,base64,...)
Definition: except/base64.h:62
char string[256]
decode_error(const std::string &w)
Definition: except/base64.h:60
virtual std::string module() const
describes the current library module (zlib,bzlib,base64,...)
Definition: except/base64.h:30
general errors only detected at runtime, no solution possible
Definition: except.h:23
general_error(const std::string &w="generic error in base64")
Definition: except/base64.h:26
general base64 encoding errors
Definition: except/base64.h:41
encode_error(const std::string &w)
Definition: except/base64.h:44
general base64 decoding errors
Definition: except/base64.h:57
C++ streambuf interface to read and write file formats supported by Zlib.
errors in base64 usage
Definition: except/base64.h:23
virtual std::string module() const
describes the current library module (zlib,bzlib,base64,...)
Definition: except.h:33