Magick::Exception::Exception(const std::string& what_)
: std::exception(),
- _what(what_)
+ _what(what_),
+ _nested((Exception *) NULL)
+{
+}
+
+Magick::Exception::Exception(const std::string& what_,
+ Exception* nested_)
+ : std::exception(),
+ _what(what_),
+ _nested(nested_)
{
}
Magick::Exception::Exception(const Magick::Exception& original_)
: exception(original_),
- _what(original_._what)
+ _what(original_._what),
+ _nested((Exception *) NULL)
{
}
Magick::Exception::~Exception() throw()
{
+ if (_nested != (Exception *) NULL)
+ delete _nested;
}
Magick::Exception& Magick::Exception::operator=(
const Magick::Exception& original_)
{
- if(this != &original_)
+ if (this != &original_)
this->_what=original_._what;
return(*this);
}
return(_what.c_str());
}
+const Magick::Exception* Magick::Exception::nested() const throw()
+{
+ return(_nested);
+}
+
+void Magick::Exception::nested(Exception* nested_) throw()
+{
+ _nested=nested_;
+}
+
Magick::Error::Error(const std::string& what_)
: Exception(what_)
{
}
+Magick::Error::Error(const std::string& what_,Exception *nested_)
+ : Exception(what_,nested_)
+{
+}
+
Magick::Error::~Error() throw()
{
}
{
}
+Magick::ErrorBlob::ErrorBlob(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorBlob::~ErrorBlob() throw()
{
}
{
}
+Magick::ErrorCache::ErrorCache(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorCache::~ErrorCache() throw()
{
}
{
}
+Magick::ErrorCoder::ErrorCoder(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorCoder::~ErrorCoder() throw()
{
}
{
}
+Magick::ErrorConfigure::ErrorConfigure(const std::string& what_,
+ Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorConfigure::~ErrorConfigure() throw()
{
}
{
}
+Magick::ErrorCorruptImage::ErrorCorruptImage(const std::string& what_,
+ Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorCorruptImage::~ErrorCorruptImage() throw()
{
}
{
}
+Magick::ErrorDelegate::ErrorDelegate(const std::string& what_,
+ Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorDelegate::~ErrorDelegate()throw()
{
}
{
}
+Magick::ErrorDraw::ErrorDraw(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorDraw::~ErrorDraw() throw()
{
}
{
}
+Magick::ErrorFileOpen::ErrorFileOpen(const std::string& what_,
+ Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
+
Magick::ErrorImage::ErrorImage(const std::string& what_)
: Error(what_)
{
}
+Magick::ErrorImage::ErrorImage(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorImage::~ErrorImage() throw()
{
}
{
}
+Magick::ErrorMissingDelegate::ErrorMissingDelegate(const std::string& what_,
+ Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorMissingDelegate::~ErrorMissingDelegate() throw ()
{
}
{
}
+Magick::ErrorModule::ErrorModule(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorModule::~ErrorModule() throw()
{
}
{
}
+Magick::ErrorMonitor::ErrorMonitor(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorMonitor::~ErrorMonitor() throw()
{
}
{
}
-Magick::ErrorOption::~ErrorOption() throw()
+Magick::ErrorOption::ErrorOption(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
{
}
-Magick::ErrorPolicy::~ErrorPolicy() throw()
+Magick::ErrorOption::~ErrorOption() throw()
{
}
{
}
+Magick::ErrorPolicy::ErrorPolicy(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
+Magick::ErrorPolicy::~ErrorPolicy() throw()
+{
+}
+
+
Magick::ErrorRegistry::ErrorRegistry(const std::string& what_)
: Error(what_)
{
}
+Magick::ErrorRegistry::ErrorRegistry(const std::string& what_,
+ Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorRegistry::~ErrorRegistry() throw()
{
}
{
}
+Magick::ErrorResourceLimit::ErrorResourceLimit(const std::string& what_,
+ Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorResourceLimit::~ErrorResourceLimit() throw()
{
}
{
}
+Magick::ErrorStream::ErrorStream(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorStream::~ErrorStream() throw()
{
}
{
}
+Magick::ErrorType::ErrorType(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorType::~ErrorType() throw()
{
}
{
}
+Magick::ErrorUndefined::ErrorUndefined(const std::string& what_,
+ Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorUndefined::~ErrorUndefined() throw()
{
}
{
}
+Magick::ErrorXServer::ErrorXServer(const std::string& what_,Exception *nested_)
+ : Error(what_,nested_)
+{
+}
+
Magick::ErrorXServer::~ErrorXServer() throw ()
{
}
{
}
+Magick::Warning::Warning(const std::string& what_,Exception *nested_)
+ : Exception(what_,nested_)
+{
+}
+
Magick::Warning::~Warning() throw()
{
}
{
}
+Magick::WarningBlob::WarningBlob(const std::string& what_,Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningBlob::~WarningBlob() throw()
{
}
{
}
+Magick::WarningCache::WarningCache(const std::string& what_,Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningCache::~WarningCache() throw()
{
}
{
}
+Magick::WarningCoder::WarningCoder(const std::string& what_,Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningCoder::~WarningCoder() throw()
{
}
{
}
+Magick::WarningConfigure::WarningConfigure(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningConfigure::~WarningConfigure() throw()
{
}
{
}
+Magick::WarningCorruptImage::WarningCorruptImage(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningCorruptImage::~WarningCorruptImage() throw()
{
}
{
}
+Magick::WarningDelegate::WarningDelegate(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningDelegate::~WarningDelegate() throw()
{
}
{
}
+Magick::WarningDraw::WarningDraw(const std::string& what_,Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningDraw::~WarningDraw() throw()
{
}
{
}
+Magick::WarningFileOpen::WarningFileOpen(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningFileOpen::~WarningFileOpen() throw()
{
}
{
}
+Magick::WarningImage::WarningImage(const std::string& what_,Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningImage::~WarningImage() throw()
{
}
{
}
+Magick::WarningMissingDelegate::WarningMissingDelegate(
+ const std::string& what_,Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningMissingDelegate::~WarningMissingDelegate() throw()
{
}
{
}
+Magick::WarningModule::WarningModule(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
+
Magick::WarningModule::~WarningModule() throw()
{
}
{
}
+Magick::WarningMonitor::WarningMonitor(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningMonitor::~WarningMonitor() throw()
{
}
{
}
-Magick::WarningPolicy::~WarningPolicy() throw()
+Magick::WarningOption::WarningOption(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
{
}
-Magick::WarningPolicy::WarningPolicy(const std::string& what_)
+Magick::WarningOption::~WarningOption() throw()
+{
+}
+
+Magick::WarningRegistry::WarningRegistry(const std::string& what_)
: Warning(what_)
{
}
-Magick::WarningOption::~WarningOption() throw()
+Magick::WarningRegistry::WarningRegistry(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
{
}
-Magick::WarningRegistry::WarningRegistry(const std::string& what_)
+Magick::WarningRegistry::~WarningRegistry() throw()
+{
+}
+
+Magick::WarningPolicy::WarningPolicy(const std::string& what_)
: Warning(what_)
{
}
-Magick::WarningRegistry::~WarningRegistry() throw()
+Magick::WarningPolicy::WarningPolicy(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
+Magick::WarningPolicy::~WarningPolicy() throw()
{
}
{
}
+Magick::WarningResourceLimit::WarningResourceLimit(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningResourceLimit::~WarningResourceLimit() throw()
{
}
{
}
+Magick::WarningStream::WarningStream(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningStream::~WarningStream() throw()
{
}
{
}
+Magick::WarningType::WarningType(const std::string& what_,Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningType::~WarningType() throw()
{
}
{
}
+Magick::WarningUndefined::WarningUndefined(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningUndefined::~WarningUndefined() throw()
{
}
{
}
+Magick::WarningXServer::WarningXServer(const std::string& what_,
+ Exception *nested_)
+ : Warning(what_,nested_)
+{
+}
+
Magick::WarningXServer::~WarningXServer() throw()
{
}
+std::string Magick::formatExceptionMessage(const MagickCore::ExceptionInfo *exception_)
+{
+ // Format error message ImageMagick-style
+ std::string message=SetClientName(0);
+ if (exception_->reason != (char *) NULL)
+ {
+ message+=std::string(": ");
+ message+=std::string(exception_->reason);
+ }
+
+ if (exception_->description != (char *) NULL)
+ message += " (" + std::string(exception_->description) + ")";
+ return(message);
+}
+
+Magick::Exception* Magick::createException(const MagickCore::ExceptionInfo *exception_)
+{
+ std::string message=formatExceptionMessage(exception_);
+ switch (exception_->severity)
+ {
+ case BlobError:
+ case BlobFatalError:
+ return new ErrorBlob(message);
+ case BlobWarning:
+ return new WarningBlob(message);
+ case CacheError:
+ case CacheFatalError:
+ return new ErrorCache(message);
+ case CacheWarning:
+ return new WarningCache(message);
+ case CoderError:
+ case CoderFatalError:
+ return new ErrorCoder(message);
+ case CoderWarning:
+ return new WarningCoder(message);
+ case ConfigureError:
+ case ConfigureFatalError:
+ return new ErrorConfigure(message);
+ case ConfigureWarning:
+ return new WarningConfigure(message);
+ case CorruptImageError:
+ case CorruptImageFatalError:
+ return new ErrorCorruptImage(message);
+ case CorruptImageWarning:
+ return new WarningCorruptImage(message);
+ case DelegateError:
+ case DelegateFatalError:
+ return new ErrorDelegate(message);
+ case DelegateWarning:
+ return new WarningDelegate(message);
+ case DrawError:
+ case DrawFatalError:
+ return new ErrorDraw(message);
+ case DrawWarning:
+ return new WarningDraw(message);
+ case FileOpenError:
+ case FileOpenFatalError:
+ return new ErrorFileOpen(message);
+ case FileOpenWarning:
+ return new WarningFileOpen(message);
+ case ImageError:
+ case ImageFatalError:
+ return new ErrorImage(message);
+ case ImageWarning:
+ return new WarningImage(message);
+ case MissingDelegateError:
+ case MissingDelegateFatalError:
+ return new ErrorMissingDelegate(message);
+ case MissingDelegateWarning:
+ return new WarningMissingDelegate(message);
+ case ModuleError:
+ case ModuleFatalError:
+ return new ErrorModule(message);
+ case ModuleWarning:
+ return new WarningModule(message);
+ case MonitorError:
+ case MonitorFatalError:
+ return new ErrorMonitor(message);
+ case MonitorWarning:
+ return new WarningMonitor(message);
+ case OptionError:
+ case OptionFatalError:
+ return new ErrorOption(message);
+ case OptionWarning:
+ return new WarningOption(message);
+ case PolicyWarning:
+ return new WarningPolicy(message);
+ case PolicyError:
+ case PolicyFatalError:
+ return new ErrorPolicy(message);
+ case RegistryError:
+ case RegistryFatalError:
+ return new ErrorRegistry(message);
+ case RegistryWarning:
+ return new WarningRegistry(message);
+ case ResourceLimitError:
+ case ResourceLimitFatalError:
+ return new ErrorResourceLimit(message);
+ case ResourceLimitWarning:
+ return new WarningResourceLimit(message);
+ case StreamError:
+ case StreamFatalError:
+ return new ErrorStream(message);
+ case StreamWarning:
+ return new WarningStream(message);
+ case TypeError:
+ case TypeFatalError:
+ return new ErrorType(message);
+ case TypeWarning:
+ return new WarningType(message);
+ case UndefinedException:
+ default:
+ return new ErrorUndefined(message);
+ case XServerError:
+ case XServerFatalError:
+ return new ErrorXServer(message);
+ case XServerWarning:
+ return new WarningXServer(message);
+ }
+}
+
MagickPPExport void Magick::throwExceptionExplicit(
const ExceptionType severity_,const char* reason_,const char* description_)
{
MagickPPExport void Magick::throwException(ExceptionInfo &exception_)
{
+ const ExceptionInfo
+ *p;
+
+ Exception
+ *nestedException,
+ *q;
+
ExceptionType
severity;
if (exception_.severity == UndefinedException)
return;
- // Format error message ImageMagick-style
- std::string message = SetClientName(0);
- if (exception_.reason != (char *) NULL)
+ std::string message=formatExceptionMessage(&exception_);
+ nestedException=(Exception *) NULL;
+ LockSemaphoreInfo(exception_.semaphore);
+ if (exception_.exceptions != (void *) NULL)
{
- message+=std::string(": ");
- message+=std::string(exception_.reason);
+ ResetLinkedListIterator((LinkedListInfo *) exception_.exceptions);
+ p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *)
+ exception_.exceptions);
+ while (p != (const ExceptionInfo *) NULL)
+ {
+ if ((p->severity != exception_.severity) || (LocaleCompare(p->reason,
+ exception_.reason) != 0) || (LocaleCompare(p->description,
+ exception_.description) != 0))
+ {
+ if (nestedException == (Exception *) NULL)
+ nestedException=createException(p);
+ else
+ {
+ q=createException(p);
+ nestedException->nested(q);
+ nestedException=q;
+ }
+ }
+ p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *)
+ exception_.exceptions);
+ }
}
-
- if (exception_.description != (char *) NULL)
- message += " (" + std::string(exception_.description) + ")";
-
+ UnlockSemaphoreInfo(exception_.semaphore);
severity=exception_.severity;
relinquish=exception_.relinquish;
DestroyExceptionInfo(&exception_);
{
case BlobError:
case BlobFatalError:
- throw ErrorBlob(message);
+ throw ErrorBlob(message,nestedException);
case BlobWarning:
- throw WarningBlob(message);
+ throw WarningBlob(message,nestedException);
case CacheError:
case CacheFatalError:
- throw ErrorCache(message);
+ throw ErrorCache(message,nestedException);
case CacheWarning:
- throw WarningCache(message);
+ throw WarningCache(message,nestedException);
case CoderError:
case CoderFatalError:
- throw ErrorCoder(message);
+ throw ErrorCoder(message,nestedException);
case CoderWarning:
- throw WarningCoder(message);
+ throw WarningCoder(message,nestedException);
case ConfigureError:
case ConfigureFatalError:
- throw ErrorConfigure(message);
+ throw ErrorConfigure(message,nestedException);
case ConfigureWarning:
- throw WarningConfigure(message);
+ throw WarningConfigure(message,nestedException);
case CorruptImageError:
case CorruptImageFatalError:
- throw ErrorCorruptImage(message);
+ throw ErrorCorruptImage(message,nestedException);
case CorruptImageWarning:
- throw WarningCorruptImage(message);
+ throw WarningCorruptImage(message,nestedException);
case DelegateError:
case DelegateFatalError:
- throw ErrorDelegate(message);
+ throw ErrorDelegate(message,nestedException);
case DelegateWarning:
- throw WarningDelegate(message);
+ throw WarningDelegate(message,nestedException);
case DrawError:
case DrawFatalError:
- throw ErrorDraw(message);
+ throw ErrorDraw(message,nestedException);
case DrawWarning:
- throw WarningDraw(message);
+ throw WarningDraw(message,nestedException);
case FileOpenError:
case FileOpenFatalError:
- throw ErrorFileOpen(message);
+ throw ErrorFileOpen(message,nestedException);
case FileOpenWarning:
- throw WarningFileOpen(message);
+ throw WarningFileOpen(message,nestedException);
case ImageError:
case ImageFatalError:
- throw ErrorImage(message);
+ throw ErrorImage(message,nestedException);
case ImageWarning:
- throw WarningImage(message);
+ throw WarningImage(message,nestedException);
case MissingDelegateError:
case MissingDelegateFatalError:
- throw ErrorMissingDelegate(message);
+ throw ErrorMissingDelegate(message,nestedException);
case MissingDelegateWarning:
- throw WarningMissingDelegate(message);
+ throw WarningMissingDelegate(message,nestedException);
case ModuleError:
case ModuleFatalError:
- throw ErrorModule(message);
+ throw ErrorModule(message,nestedException);
case ModuleWarning:
- throw WarningModule(message);
+ throw WarningModule(message,nestedException);
case MonitorError:
case MonitorFatalError:
- throw ErrorMonitor(message);
+ throw ErrorMonitor(message,nestedException);
case MonitorWarning:
- throw WarningMonitor(message);
+ throw WarningMonitor(message,nestedException);
case OptionError:
case OptionFatalError:
- throw ErrorOption(message);
+ throw ErrorOption(message,nestedException);
case OptionWarning:
- throw WarningOption(message);
+ throw WarningOption(message,nestedException);
+ case PolicyWarning:
+ throw WarningPolicy(message,nestedException);
+ case PolicyError:
+ case PolicyFatalError:
+ throw ErrorPolicy(message,nestedException);
case RegistryError:
case RegistryFatalError:
- throw ErrorRegistry(message);
+ throw ErrorRegistry(message,nestedException);
case RegistryWarning:
- throw WarningRegistry(message);
+ throw WarningRegistry(message,nestedException);
case ResourceLimitError:
case ResourceLimitFatalError:
- throw ErrorResourceLimit(message);
+ throw ErrorResourceLimit(message,nestedException);
case ResourceLimitWarning:
- throw WarningResourceLimit(message);
+ throw WarningResourceLimit(message,nestedException);
case StreamError:
case StreamFatalError:
- throw ErrorStream(message);
+ throw ErrorStream(message,nestedException);
case StreamWarning:
- throw WarningStream(message);
+ throw WarningStream(message,nestedException);
case TypeError:
case TypeFatalError:
- throw ErrorType(message);
+ throw ErrorType(message,nestedException);
case TypeWarning:
- throw WarningType(message);
+ throw WarningType(message,nestedException);
case UndefinedException:
default:
- throw ErrorUndefined(message);
+ throw ErrorUndefined(message,nestedException);
case XServerError:
case XServerFatalError:
- throw ErrorXServer(message);
+ throw ErrorXServer(message,nestedException);
case XServerWarning:
- throw WarningXServer(message);
+ throw WarningXServer(message,nestedException);
}
}
\ No newline at end of file
// Construct with message string
Exception(const std::string& what_);
+ // Construct with message string and nested exception
+ Exception(const std::string& what_, Exception* nested_);
+
// Copy constructor
Exception(const Exception& original_);
// Get string identifying exception
virtual const char* what() const throw();
+ // Get nested exception
+ const Exception* nested() const throw();
+
+ //////////////////////////////////////////////////////////////////////
+ //
+ // No user-serviceable parts beyond this point
+ //
+ //////////////////////////////////////////////////////////////////////
+
+ void nested(Exception* nested_) throw();
+
private:
std::string _what;
+ Exception* _nested;
};
//
{
public:
explicit Error(const std::string& what_);
+ explicit Error(const std::string& what_,Exception *nested_);
~Error() throw();
};
{
public:
explicit ErrorBlob(const std::string& what_);
+ explicit ErrorBlob(const std::string& what_,Exception *nested_);
~ErrorBlob() throw();
};
{
public:
explicit ErrorCache(const std::string& what_);
+ explicit ErrorCache(const std::string& what_,Exception *nested_);
~ErrorCache() throw();
};
{
public:
explicit ErrorCoder(const std::string& what_);
+ explicit ErrorCoder(const std::string& what_,Exception *nested_);
~ErrorCoder() throw();
};
{
public:
explicit ErrorConfigure(const std::string& what_);
+ explicit ErrorConfigure(const std::string& what_,Exception *nested_);
~ErrorConfigure() throw();
};
{
public:
explicit ErrorCorruptImage(const std::string& what_);
+ explicit ErrorCorruptImage(const std::string& what_,Exception *nested_);
~ErrorCorruptImage() throw();
};
{
public:
explicit ErrorDelegate(const std::string& what_);
+ explicit ErrorDelegate(const std::string& what_,Exception *nested_);
~ErrorDelegate() throw();
};
{
public:
explicit ErrorDraw(const std::string& what_);
+ explicit ErrorDraw(const std::string& what_,Exception *nested_);
~ErrorDraw() throw();
};
{
public:
explicit ErrorFileOpen(const std::string& what_);
+ explicit ErrorFileOpen(const std::string& what_,Exception *nested_);
~ErrorFileOpen() throw();
};
{
public:
explicit ErrorImage(const std::string& what_);
+ explicit ErrorImage(const std::string& what_,Exception *nested_);
~ErrorImage() throw();
};
{
public:
explicit ErrorMissingDelegate(const std::string& what_);
+ explicit ErrorMissingDelegate(const std::string& what_,Exception *nested_);
~ErrorMissingDelegate() throw();
};
{
public:
explicit ErrorModule(const std::string& what_);
+ explicit ErrorModule(const std::string& what_,Exception *nested_);
~ErrorModule() throw();
};
{
public:
explicit ErrorMonitor(const std::string& what_);
+ explicit ErrorMonitor(const std::string& what_,Exception *nested_);
~ErrorMonitor() throw();
};
{
public:
explicit ErrorOption(const std::string& what_);
+ explicit ErrorOption(const std::string& what_,Exception *nested_);
~ErrorOption() throw();
};
{
public:
explicit ErrorPolicy(const std::string& what_);
+ explicit ErrorPolicy(const std::string& what_,Exception *nested_);
~ErrorPolicy() throw();
};
{
public:
explicit ErrorRegistry(const std::string& what_);
+ explicit ErrorRegistry(const std::string& what_,Exception *nested_);
~ErrorRegistry() throw();
};
{
public:
explicit ErrorResourceLimit(const std::string& what_);
+ explicit ErrorResourceLimit(const std::string& what_,Exception *nested_);
~ErrorResourceLimit() throw();
};
{
public:
explicit ErrorStream(const std::string& what_);
+ explicit ErrorStream(const std::string& what_,Exception *nested_);
~ErrorStream() throw();
};
{
public:
explicit ErrorType(const std::string& what_);
+ explicit ErrorType(const std::string& what_,Exception *nested_);
~ErrorType() throw();
};
{
public:
explicit ErrorUndefined(const std::string& what_);
+ explicit ErrorUndefined(const std::string& what_,Exception *nested_);
~ErrorUndefined() throw();
};
{
public:
explicit ErrorXServer(const std::string& what_);
+ explicit ErrorXServer(const std::string& what_,Exception *nested_);
~ErrorXServer() throw();
};
{
public:
explicit Warning(const std::string& what_);
+ explicit Warning(const std::string& what_,Exception *nested_);
~Warning() throw();
};
{
public:
explicit WarningBlob(const std::string& what_);
+ explicit WarningBlob(const std::string& what_,Exception *nested_);
~WarningBlob() throw();
};
{
public:
explicit WarningCache(const std::string& what_);
+ explicit WarningCache(const std::string& what_,Exception *nested_);
~WarningCache() throw();
};
{
public:
explicit WarningCoder(const std::string& what_);
+ explicit WarningCoder(const std::string& what_,Exception *nested_);
~WarningCoder() throw();
};
{
public:
explicit WarningConfigure(const std::string& what_);
+ explicit WarningConfigure(const std::string& what_,Exception *nested_);
~WarningConfigure() throw();
};
{
public:
explicit WarningCorruptImage(const std::string& what_);
+ explicit WarningCorruptImage(const std::string& what_,Exception *nested_);
~WarningCorruptImage() throw();
};
{
public:
explicit WarningDelegate(const std::string& what_);
+ explicit WarningDelegate(const std::string& what_,Exception *nested_);
~WarningDelegate() throw();
};
{
public:
explicit WarningDraw(const std::string& what_);
+ explicit WarningDraw(const std::string& what_,Exception *nested_);
~WarningDraw() throw();
};
{
public:
explicit WarningFileOpen(const std::string& what_);
+ explicit WarningFileOpen(const std::string& what_,Exception *nested_);
~WarningFileOpen() throw();
};
{
public:
explicit WarningImage(const std::string& what_);
+ explicit WarningImage(const std::string& what_,Exception *nested_);
~WarningImage() throw();
};
{
public:
explicit WarningMissingDelegate(const std::string& what_);
+ explicit WarningMissingDelegate(const std::string& what_,
+ Exception *nested_);
~WarningMissingDelegate() throw();
};
{
public:
explicit WarningModule(const std::string& what_);
+ explicit WarningModule(const std::string& what_,Exception *nested_);
~WarningModule() throw();
};
{
public:
explicit WarningMonitor(const std::string& what_);
+ explicit WarningMonitor(const std::string& what_,Exception *nested_);
~WarningMonitor() throw();
};
{
public:
explicit WarningOption(const std::string& what_);
+ explicit WarningOption(const std::string& what_,Exception *nested_);
~WarningOption() throw();
};
{
public:
explicit WarningPolicy(const std::string& what_);
+ explicit WarningPolicy(const std::string& what_,Exception *nested_);
~WarningPolicy() throw();
};
{
public:
explicit WarningRegistry(const std::string& what_);
+ explicit WarningRegistry(const std::string& what_,Exception *nested_);
~WarningRegistry() throw();
};
{
public:
explicit WarningResourceLimit(const std::string& what_);
+ explicit WarningResourceLimit(const std::string& what_,Exception *nested_);
~WarningResourceLimit() throw();
};
{
public:
explicit WarningStream(const std::string& what_);
+ explicit WarningStream(const std::string& what_,Exception *nested_);
~WarningStream() throw();
};
{
public:
explicit WarningType(const std::string& what_);
+ explicit WarningType(const std::string& what_,Exception *nested_);
~WarningType() throw();
};
{
public:
explicit WarningUndefined(const std::string& what_);
+ explicit WarningUndefined(const std::string& what_,Exception *nested_);
~WarningUndefined() throw();
};
{
public:
explicit WarningXServer(const std::string& what_);
+ explicit WarningXServer(const std::string& what_,Exception *nested_);
~WarningXServer() throw();
};
// No user-serviceable components beyond this point.
//
+ std::string formatExceptionMessage(
+ const MagickCore::ExceptionInfo *exception_);
+
+ Exception* createException(const MagickCore::ExceptionInfo *exception_);
+
// Throw exception based on raw data
extern MagickPPExport void throwExceptionExplicit(
const MagickCore::ExceptionType severity_,const char* reason_,