~ubuntu-branches/ubuntu/trusty/liblas/trusty-proposed

« back to all changes in this revision

Viewing changes to include/liblas/exception.hpp

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2014-01-05 17:00:29 UTC
  • mfrom: (7.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140105170029-ddtp0j63x5jvck2u
Tags: 1.7.0+dfsg-2
Fixed missing linking of system boost component.
(closes: #733282)

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
namespace liblas {
50
50
 
51
51
/// Exception reporting invalid point data.
52
 
/// It's usually thrown by LASPoint::Validate function.
 
52
/// It's usually thrown by Point::Validate function.
53
53
class invalid_point_data : public std::runtime_error
54
54
{
55
55
public:
59
59
    {}
60
60
 
61
61
    /// Return flags identifying invalid point data members.
62
 
    /// Flags are composed with composed with LASPoint::DataMemberFlag.
63
 
    /// Testing flags example: bool timeValid = e.who() & LASPoint::eTime;
 
62
    /// Flags are composed with composed with Point::DataMemberFlag.
 
63
    /// Testing flags example: bool timeValid = e.who() & Point::eTime;
64
64
    unsigned int who() const
65
65
    {
66
66
        return m_who;
71
71
    unsigned int m_who;
72
72
};
73
73
 
 
74
class liblas_error : public std::runtime_error
 
75
{
 
76
public:
 
77
 
 
78
    liblas_error(std::string const& msg)
 
79
        : std::runtime_error(msg)
 
80
    {}
 
81
};
 
82
 
 
83
class invalid_expression : public liblas_error
 
84
{
 
85
public:
 
86
 
 
87
    invalid_expression(std::string const& msg)
 
88
        : liblas_error(msg)
 
89
    {}
 
90
};
 
91
 
 
92
class invalid_format : public liblas_error
 
93
{
 
94
public:
 
95
 
 
96
    invalid_format(std::string const& msg)
 
97
        : liblas_error(msg)
 
98
    {}
 
99
};
 
100
 
 
101
// use this for attempts to use a feature not compiled in, e.g. laszip or gdal
 
102
class configuration_error : public liblas_error
 
103
{
 
104
public:
 
105
    configuration_error(std::string const& msg)
 
106
        : liblas_error(msg)
 
107
    {}
 
108
};
 
109
 
 
110
// use this for code still under development
 
111
class not_yet_implemented : public liblas_error
 
112
{
 
113
public:
 
114
    not_yet_implemented(std::string const& msg)
 
115
        : liblas_error(msg)
 
116
    {}
 
117
};
 
118
 
74
119
} // namespace liblas
75
120
 
76
121
#endif // LIBLAS_EXCEPTION_HPP_INCLUDED