summaryrefslogtreecommitdiff
path: root/lib/Exceptions.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-09 14:06:58 +0000
committerPixel <Pixel>2001-11-09 14:06:58 +0000
commit823761df28ad31cde8a071125b177f49494d804a (patch)
tree9e063f7eb4d5ad48039e957f0ec7d5c70fcefe0d /lib/Exceptions.cc
parent69d9cab0c415837552a84f17366356e9571fdbda (diff)
Exceptions...
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r--lib/Exceptions.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc
index a4fca0f..9d2ba8e 100644
--- a/lib/Exceptions.cc
+++ b/lib/Exceptions.cc
@@ -38,7 +38,9 @@ IOGeneral::IOGeneral() { }
IOAgain::IOAgain() : IOGeneral(_("No more bytes for reading or writing.")) { }
-char * xstrdup(const char * s) throw (MemoryException) {
+TaskSwitch::TaskSwitch() : GeneralException(_("Switching task in a non-tasked environnement")) { }
+
+char * xstrdup(const char * s) throw (GeneralException) {
char * r;
if (!(r = ::strdup(s))) {
@@ -48,7 +50,7 @@ char * xstrdup(const char * s) throw (MemoryException) {
return r;
}
-void * xmalloc(ssize_t s) throw (MemoryException) {
+void * xmalloc(ssize_t s) throw (GeneralException) {
void * r;
if (!(r = ::malloc(s))) {
@@ -60,7 +62,7 @@ void * xmalloc(ssize_t s) throw (MemoryException) {
return r;
}
-void * xrealloc(void * ptr, size_t s) throw (MemoryException) {
+void * xrealloc(void * ptr, size_t s) throw (GeneralException) {
void * r;
if (!(r = ::realloc(ptr, s))) {