LogicErrors.cpp

00001 #include "LogicErrors.h"
00002 
00003 namespace Sct {
00004     
00005 LogicError::LogicError(const string& msg, const string& file, int line) throw() {
00006     initialize("LOGIC_ERROR", "Sct::LogicError", msg, 0, file, line);
00007 }
00008     
00009 LogicError::LogicError(Throwable& cause, const string& file, int line) throw() {
00010     initialize("LOGIC_ERROR", "Sct::LogicError", "", &cause, file, line);
00011 }
00012     
00013 LogicError::LogicError(const string& msg, Throwable& cause, const string& file, int line) throw() {
00014     initialize("LOGIC_ERROR", "Sct::LogicError", msg, &cause, file, line);
00015 }
00016 
00017 
00018   
00019 InvalidArgumentError::InvalidArgumentError(const string& msg, const string& file, int line) throw() {
00020     initialize("BAD_ARG", "Sct::InvalidArgumentError", msg, 0, file, line);
00021 }
00022     
00023 InvalidArgumentError::InvalidArgumentError(Throwable& cause, const string& file, int line) throw() {
00024     initialize("BAD_ARG", "Sct::InvalidArgumentError", "", &cause, file, line);
00025 }
00026     
00027 InvalidArgumentError::InvalidArgumentError(const string& msg, Throwable& cause, const string& file, int line) throw() {
00028     initialize("BAD_ARG", "Sct::InvalidArgumentError", msg, &cause, file, line);
00029 }
00030    
00031 
00032 
00033 
00034 InvariantViolatedError::InvariantViolatedError(const string& msg, const string& file, int line) throw() {
00035     initialize("BAD_INVARIANT", "Sct::InvariantViolatedError", msg, 0, file, line);
00036 }
00037     
00038 InvariantViolatedError::InvariantViolatedError(Throwable& cause, const string& file, int line) throw() {
00039     initialize("BAD_INVARIANT", "Sct::InvariantViolatedError", "", &cause, file, line);
00040 }
00041     
00042 InvariantViolatedError::InvariantViolatedError(const string& msg, Throwable& cause, const string& file, int line) throw() {
00043     initialize("BAD_INVARIANT", "Sct::InvariantViolatedError", msg, &cause, file, line);
00044 }
00045 
00046 
00047 
00048 
00049 IllegalStateError::IllegalStateError(const string& msg, const string& file, int line) throw() {
00050     initialize("BAD_STATE", "Sct::IllegalStateError", msg, 0, file, line);
00051 }
00052     
00053 IllegalStateError::IllegalStateError(Throwable& cause, const string& file, int line) throw() {
00054     initialize("BAD_STATE", "Sct::IllegalStateError", "", &cause, file, line);
00055 }
00056     
00057 IllegalStateError::IllegalStateError(const string& msg, Throwable& cause, const string& file, int line) throw() {
00058     initialize("BAD_STATE", "Sct::IllegalStateError", msg, &cause, file, line);
00059 }
00060 
00061     
00062 }

Generated on Mon Feb 6 14:01:22 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6