/** * \file exception.cpp \brief Check handling. * * Copyright 2007-2011 IMP Inventors. All rights reserved. * */ #include "IMP/exception.h" #include "IMP/FailureHandler.h" #include "IMP/log.h" #include "IMP/VectorOfRefCounted.h" #include "IMP/internal/static.h" #include #include namespace rmf { Exception::~Exception() throw() { destroy(); } Exception::Exception(const char *message) { str_= new (std::nothrow) refstring(); if (str_ != NULL) { str_->ct_=1; std::strncpy(str_->message_, message, 4095); str_->message_[4095]='\0'; } } UsageException::~UsageException() throw() { } IndexException::~IndexException() throw() { } ValueException::~ValueException() throw() { } IOException::~IOException() throw() { } }