aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/song.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-20 03:43:31 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:45 +0100
commit22aa1302d76342c7c4b56b7380734a7f984e7411 (patch)
treea75880a07b4c32967bc01d3e2d39231f6054d4e3 /src/base/song.cpp
parentc139750658c14e8e0a2621044473810027486f50 (diff)
downloadusdx-22aa1302d76342c7c4b56b7380734a7f984e7411.tar.gz
usdx-22aa1302d76342c7c4b56b7380734a7f984e7411.tar.xz
usdx-22aa1302d76342c7c4b56b7380734a7f984e7411.zip
added custom exception classes for better catching them (gotta catch 'em all)
Diffstat (limited to 'src/base/song.cpp')
-rw-r--r--src/base/song.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/song.cpp b/src/base/song.cpp
index 3d825bf4..4185d51b 100644
--- a/src/base/song.cpp
+++ b/src/base/song.cpp
@@ -108,7 +108,7 @@ namespace usdx
}
else if (required) {
LOG4CXX_ERROR(log, "Incomplete Song! Missing '" << tag << "' Tag in: '" << get_filename() << "'");
- throw "Incomplete Song! Missing Tag.";
+ throw MissingSongTagException("Incomplete Song! Missing Tag.");
}
return result;
@@ -125,7 +125,7 @@ namespace usdx
}
else if (required) {
LOG4CXX_ERROR(log, "Incomplete Song! Missing '" << tag << "' Tag in: '" << get_filename() << "'");
- throw "Incomplete Song! Missing Tag.";
+ throw MissingSongTagException("Incomplete Song! Missing Tag.");
}
return result;
@@ -143,7 +143,7 @@ namespace usdx
}
else if (required) {
LOG4CXX_ERROR(log, "Incomplete Song! Missing '" << tag << "' Tag in: '" << get_filename() << "'");
- throw "Incomplete Song! Missing Tag.";
+ throw MissingSongTagException("Incomplete Song! Missing Tag.");
}
return result;
@@ -164,7 +164,7 @@ namespace usdx
}
else if (required) {
LOG4CXX_ERROR(log, "Incomplete Song! Missing '" << tag << "' Tag in: '" << get_filename() << "'");
- throw "Incomplete Song! Missing Tag.";
+ throw MissingSongTagException("Incomplete Song! Missing Tag.");
}
return result;