9 #define MAGICKCORE_IMPLEMENTATION 1
10 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1
37 : exception(original_),
38 _what(original_._what),
52 if (
this != &original_)
53 this->_what=original_._what;
59 return(_what.c_str());
92 :
Error(what_,nested_)
106 :
Error(what_,nested_)
120 :
Error(what_,nested_)
135 :
Error(what_,nested_)
150 :
Error(what_,nested_)
165 :
Error(what_,nested_)
179 :
Error(what_,nested_)
198 :
Error(what_,nested_)
209 :
Error(what_,nested_)
224 :
Error(what_,nested_)
238 :
Error(what_,nested_)
252 :
Error(what_,nested_)
266 :
Error(what_,nested_)
280 :
Error(what_,nested_)
296 :
Error(what_,nested_)
311 :
Error(what_,nested_)
325 :
Error(what_,nested_)
339 :
Error(what_,nested_)
354 :
Error(what_,nested_)
368 :
Error(what_,nested_)
521 const std::string& what_)
527 const std::string& what_,
Exception *nested_)
689 std::string message=GetClientName();
690 if (exception_->reason != (
char *) NULL)
692 message+=std::string(
": ");
693 message+=std::string(exception_->reason);
696 if (exception_->description != (
char *) NULL)
697 message +=
" (" + std::string(exception_->description) +
")";
704 switch (exception_->severity)
712 case CacheFatalError:
717 case CoderFatalError:
722 case ConfigureFatalError:
724 case ConfigureWarning:
726 case CorruptImageError:
727 case CorruptImageFatalError:
729 case CorruptImageWarning:
732 case DelegateFatalError:
734 case DelegateWarning:
742 case FileOpenFatalError:
744 case FileOpenWarning:
747 case ImageFatalError:
751 case MissingDelegateError:
752 case MissingDelegateFatalError:
754 case MissingDelegateWarning:
757 case ModuleFatalError:
762 case MonitorFatalError:
767 case OptionFatalError:
774 case PolicyFatalError:
777 case RegistryFatalError:
779 case RegistryWarning:
781 case ResourceLimitError:
782 case ResourceLimitFatalError:
784 case ResourceLimitWarning:
787 case StreamFatalError:
796 case UndefinedException:
800 case XServerFatalError:
808 const ExceptionType severity_,
const char* reason_,
const char* description_)
811 if (severity_ == UndefinedException)
815 ThrowException(exceptionInfo,severity_,reason_, description_);
836 if (exception_->severity == UndefinedException)
840 nestedException=(Exception *) NULL;
841 LockSemaphoreInfo(exception_->semaphore);
842 if (exception_->exceptions != (
void *) NULL)
844 index=GetNumberOfElementsInLinkedList((LinkedListInfo *)
845 exception_->exceptions);
848 p=(
const ExceptionInfo *) GetValueFromLinkedList((LinkedListInfo *)
849 exception_->exceptions,--index);
850 if ((p->severity != exception_->severity) || (LocaleCompare(p->reason,
851 exception_->reason) != 0) || (LocaleCompare(p->description,
852 exception_->description) != 0))
854 if (nestedException == (Exception *) NULL)
859 nestedException->nested(q);
865 severity=exception_->severity;
866 UnlockSemaphoreInfo(exception_->semaphore);
868 if ((quiet_) && (severity < MagickCore::ErrorException))
870 delete nestedException;
874 DestroyExceptionInfo(exception_);
880 throw ErrorBlob(message,nestedException);
882 throw WarningBlob(message,nestedException);
884 case CacheFatalError:
885 throw ErrorCache(message,nestedException);
887 throw WarningCache(message,nestedException);
889 case CoderFatalError:
890 throw ErrorCoder(message,nestedException);
892 throw WarningCoder(message,nestedException);
894 case ConfigureFatalError:
895 throw ErrorConfigure(message,nestedException);
896 case ConfigureWarning:
897 throw WarningConfigure(message,nestedException);
898 case CorruptImageError:
899 case CorruptImageFatalError:
900 throw ErrorCorruptImage(message,nestedException);
901 case CorruptImageWarning:
902 throw WarningCorruptImage(message,nestedException);
904 case DelegateFatalError:
905 throw ErrorDelegate(message,nestedException);
906 case DelegateWarning:
907 throw WarningDelegate(message,nestedException);
910 throw ErrorDraw(message,nestedException);
912 throw WarningDraw(message,nestedException);
914 case FileOpenFatalError:
915 throw ErrorFileOpen(message,nestedException);
916 case FileOpenWarning:
917 throw WarningFileOpen(message,nestedException);
919 case ImageFatalError:
920 throw ErrorImage(message,nestedException);
922 throw WarningImage(message,nestedException);
923 case MissingDelegateError:
924 case MissingDelegateFatalError:
925 throw ErrorMissingDelegate(message,nestedException);
926 case MissingDelegateWarning:
927 throw WarningMissingDelegate(message,nestedException);
929 case ModuleFatalError:
930 throw ErrorModule(message,nestedException);
932 throw WarningModule(message,nestedException);
934 case MonitorFatalError:
935 throw ErrorMonitor(message,nestedException);
937 throw WarningMonitor(message,nestedException);
939 case OptionFatalError:
940 throw ErrorOption(message,nestedException);
942 throw WarningOption(message,nestedException);
944 throw WarningPolicy(message,nestedException);
946 case PolicyFatalError:
947 throw ErrorPolicy(message,nestedException);
949 case RegistryFatalError:
950 throw ErrorRegistry(message,nestedException);
951 case RegistryWarning:
952 throw WarningRegistry(message,nestedException);
953 case ResourceLimitError:
954 case ResourceLimitFatalError:
955 throw ErrorResourceLimit(message,nestedException);
956 case ResourceLimitWarning:
957 throw WarningResourceLimit(message,nestedException);
959 case StreamFatalError:
960 throw ErrorStream(message,nestedException);
962 throw WarningStream(message,nestedException);
965 throw ErrorType(message,nestedException);
967 throw WarningType(message,nestedException);
968 case UndefinedException:
970 throw ErrorUndefined(message,nestedException);
972 case XServerFatalError:
973 throw ErrorXServer(message,nestedException);
975 throw WarningXServer(message,nestedException);
WarningMissingDelegate(const std::string &what_)
WarningXServer(const std::string &what_)
virtual const char * what() const
ErrorDelegate(const std::string &what_)
ErrorImage(const std::string &what_)
WarningDraw(const std::string &what_)
WarningCoder(const std::string &what_)
WarningMonitor(const std::string &what_)
ErrorFileOpen(const std::string &what_)
Error(const std::string &what_)
ErrorUndefined(const std::string &what_)
WarningOption(const std::string &what_)
WarningRegistry(const std::string &what_)
const Exception * nested() const
WarningDelegate(const std::string &what_)
WarningStream(const std::string &what_)
WarningPolicy(const std::string &what_)
std::string formatExceptionMessage(const MagickCore::ExceptionInfo *exception_)
ErrorRegistry(const std::string &what_)
MagickPPExport void throwException(MagickCore::ExceptionInfo *exception_, const bool quiet_=false)
WarningResourceLimit(const std::string &what_)
WarningModule(const std::string &what_)
WarningUndefined(const std::string &what_)
WarningBlob(const std::string &what_)
ErrorCache(const std::string &what_)
Warning(const std::string &what_)
ErrorOption(const std::string &what_)
ErrorStream(const std::string &what_)
WarningCorruptImage(const std::string &what_)
MagickPPExport void throwExceptionExplicit(const MagickCore::ExceptionType severity_, const char *reason_, const char *description_=(char *) NULL)
WarningCache(const std::string &what_)
ErrorXServer(const std::string &what_)
ErrorPolicy(const std::string &what_)
ErrorBlob(const std::string &what_)
ErrorCorruptImage(const std::string &what_)
#define ThrowPPException(quiet)
WarningFileOpen(const std::string &what_)
ErrorResourceLimit(const std::string &what_)
ErrorCoder(const std::string &what_)
~WarningMissingDelegate()
ErrorType(const std::string &what_)
WarningImage(const std::string &what_)
ErrorModule(const std::string &what_)
ErrorDraw(const std::string &what_)
Exception & operator=(const Exception &original_)
ErrorMonitor(const std::string &what_)
Exception * createException(const MagickCore::ExceptionInfo *exception_)
Exception(const std::string &what_)
ErrorMissingDelegate(const std::string &what_)
WarningType(const std::string &what_)