aboutsummaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-09-26 22:51:49 +0200
committerAdrian Kummerlaender2014-09-26 22:51:49 +0200
commita0b3e97d555ee504636c06fd3a72983b95c3bfb6 (patch)
treed0c8921a9f95ac555307c9a751ba5c6792dd95eb /src/exceptions.h
parent3aad19966f81189219d00d0ea905b6b1e83d5576 (diff)
downloadSimpleParser-a0b3e97d555ee504636c06fd3a72983b95c3bfb6.tar
SimpleParser-a0b3e97d555ee504636c06fd3a72983b95c3bfb6.tar.gz
SimpleParser-a0b3e97d555ee504636c06fd3a72983b95c3bfb6.tar.bz2
SimpleParser-a0b3e97d555ee504636c06fd3a72983b95c3bfb6.tar.lz
SimpleParser-a0b3e97d555ee504636c06fd3a72983b95c3bfb6.tar.xz
SimpleParser-a0b3e97d555ee504636c06fd3a72983b95c3bfb6.tar.zst
SimpleParser-a0b3e97d555ee504636c06fd3a72983b95c3bfb6.zip
Eliminated manual division through zero prevention
* while integer division through zero is obviously a low level error that should be prevented, this operation is well-defined for floating point values as used by SimpleParser
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/exceptions.h b/src/exceptions.h
index b17f424..1408603 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -17,13 +17,6 @@ class operator_exception: public std::exception {
}
};
-class divide_exception: public std::exception {
- virtual const char* what() const throw()
- {
- return "A divison through zero had to be prevented by the parser - check your input term.";
- }
-};
-
class identifier_exception: public std::exception {
virtual const char* what() const throw()
{