Skip to content

Commit

Permalink
Move EndOfFileException to exception.hh
Browse files Browse the repository at this point in the history
git-svn-id: file:///dev/shm/somefilter.svn@609 e102df66-1e2e-11dd-9b44-c24451a4db5e
  • Loading branch information
kpu committed Aug 28, 2011
1 parent b8c46ef commit 2494105
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
5 changes: 5 additions & 0 deletions util/exception.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,9 @@ ErrnoException::ErrnoException() throw() : errno_(errno) {

ErrnoException::~ErrnoException() throw() {}

EndOfFileException::EndOfFileException() throw() {
*this << "End of file";
}
EndOfFileException::~EndOfFileException() throw() {}

} // namespace util
6 changes: 6 additions & 0 deletions util/exception.hh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ class ErrnoException : public Exception {
int errno_;
};

class EndOfFileException : public Exception {
public:
EndOfFileException() throw();
~EndOfFileException() throw();
};

} // namespace util

#endif // UTIL_EXCEPTION__
5 changes: 0 additions & 5 deletions util/file_piece.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@

namespace util {

EndOfFileException::EndOfFileException() throw() {
*this << "End of file";
}
EndOfFileException::~EndOfFileException() throw() {}

ParseNumberException::ParseNumberException(StringPiece value) throw() {
*this << "Could not parse \"" << value << "\" into a number";
}
Expand Down
6 changes: 0 additions & 6 deletions util/file_piece.hh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@

namespace util {

class EndOfFileException : public Exception {
public:
EndOfFileException() throw();
~EndOfFileException() throw();
};

class ParseNumberException : public Exception {
public:
explicit ParseNumberException(StringPiece value) throw();
Expand Down

0 comments on commit 2494105

Please sign in to comment.