Lines Matching refs:exception

111     *exception;  in AcquireExceptionInfo()  local
113 exception=(ExceptionInfo *) AcquireCriticalMemory(sizeof(*exception)); in AcquireExceptionInfo()
114 InitializeExceptionInfo(exception); in AcquireExceptionInfo()
115 exception->relinquish=MagickTrue; in AcquireExceptionInfo()
116 return(exception); in AcquireExceptionInfo()
143 static void *DestroyExceptionElement(void *exception) in DestroyExceptionElement() argument
148 p=(ExceptionInfo *) exception; in DestroyExceptionElement()
157 MagickExport void ClearMagickException(ExceptionInfo *exception) in ClearMagickException() argument
159 assert(exception != (ExceptionInfo *) NULL); in ClearMagickException()
160 assert(exception->signature == MagickCoreSignature); in ClearMagickException()
161 if (exception->exceptions == (void *) NULL) in ClearMagickException()
163 LockSemaphoreInfo(exception->semaphore); in ClearMagickException()
164 ClearLinkedList((LinkedListInfo *) exception->exceptions, in ClearMagickException()
166 exception->severity=UndefinedException; in ClearMagickException()
167 exception->reason=(char *) NULL; in ClearMagickException()
168 exception->description=(char *) NULL; in ClearMagickException()
169 UnlockSemaphoreInfo(exception->semaphore); in ClearMagickException()
196 MagickExport void CatchException(ExceptionInfo *exception) in CatchException() argument
207 assert(exception != (ExceptionInfo *) NULL); in CatchException()
208 assert(exception->signature == MagickCoreSignature); in CatchException()
209 if (exception->exceptions == (void *) NULL) in CatchException()
211 LockSemaphoreInfo(exception->semaphore); in CatchException()
212 exceptions=(LinkedListInfo *) exception->exceptions; in CatchException()
225 UnlockSemaphoreInfo(exception->semaphore); in CatchException()
226 ClearMagickException(exception); in CatchException()
251 MagickExport ExceptionInfo *CloneExceptionInfo(ExceptionInfo *exception) in CloneExceptionInfo() argument
256 clone_exception=(ExceptionInfo *) AcquireCriticalMemory(sizeof(*exception)); in CloneExceptionInfo()
258 InheritException(clone_exception,exception); in CloneExceptionInfo()
411 MagickExport ExceptionInfo *DestroyExceptionInfo(ExceptionInfo *exception) in DestroyExceptionInfo() argument
416 assert(exception != (ExceptionInfo *) NULL); in DestroyExceptionInfo()
417 assert(exception->signature == MagickCoreSignature); in DestroyExceptionInfo()
418 if (exception->semaphore == (SemaphoreInfo *) NULL) in DestroyExceptionInfo()
419 ActivateSemaphoreInfo(&exception->semaphore); in DestroyExceptionInfo()
420 LockSemaphoreInfo(exception->semaphore); in DestroyExceptionInfo()
421 exception->severity=UndefinedException; in DestroyExceptionInfo()
422 if (exception->relinquish != MagickFalse) in DestroyExceptionInfo()
424 exception->signature=(~MagickCoreSignature); in DestroyExceptionInfo()
425 if (exception->exceptions != (void *) NULL) in DestroyExceptionInfo()
426 exception->exceptions=(void *) DestroyLinkedList((LinkedListInfo *) in DestroyExceptionInfo()
427 exception->exceptions,DestroyExceptionElement); in DestroyExceptionInfo()
430 if (exception->exceptions != (void *) NULL) in DestroyExceptionInfo()
431 ClearLinkedList((LinkedListInfo *) exception->exceptions, in DestroyExceptionInfo()
433 relinquish=exception->relinquish; in DestroyExceptionInfo()
434 UnlockSemaphoreInfo(exception->semaphore); in DestroyExceptionInfo()
437 RelinquishSemaphoreInfo(&exception->semaphore); in DestroyExceptionInfo()
438 exception=(ExceptionInfo *) RelinquishMagickMemory(exception); in DestroyExceptionInfo()
440 return(exception); in DestroyExceptionInfo()
469 exception[MagickPathExtent]; in GetExceptionMessage() local
471 *exception='\0'; in GetExceptionMessage()
474 (void) strerror_r(error,exception,sizeof(exception)); in GetExceptionMessage()
476 (void) CopyMagickString(exception,strerror_r(error,exception, in GetExceptionMessage()
477 sizeof(exception)),sizeof(exception)); in GetExceptionMessage()
480 (void) CopyMagickString(exception,strerror(error),sizeof(exception)); in GetExceptionMessage()
482 return(ConstantString(exception)); in GetExceptionMessage()
628 MagickExport void InheritException(ExceptionInfo *exception, in InheritException() argument
634 assert(exception != (ExceptionInfo *) NULL); in InheritException()
635 assert(exception->signature == MagickCoreSignature); in InheritException()
638 assert(exception != relative); in InheritException()
647 (void) ThrowException(exception,p->severity,p->reason,p->description); in InheritException()
676 MagickPrivate void InitializeExceptionInfo(ExceptionInfo *exception) in InitializeExceptionInfo() argument
678 assert(exception != (ExceptionInfo *) NULL); in InitializeExceptionInfo()
679 (void) memset(exception,0,sizeof(*exception)); in InitializeExceptionInfo()
680 exception->severity=UndefinedException; in InitializeExceptionInfo()
681 exception->exceptions=(void *) NewLinkedList(0); in InitializeExceptionInfo()
682 exception->semaphore=AcquireSemaphoreInfo(); in InitializeExceptionInfo()
683 exception->signature=MagickCoreSignature; in InitializeExceptionInfo()
921 MagickExport MagickBooleanType ThrowException(ExceptionInfo *exception, in ThrowException() argument
930 assert(exception != (ExceptionInfo *) NULL); in ThrowException()
931 assert(exception->signature == MagickCoreSignature); in ThrowException()
932 LockSemaphoreInfo(exception->semaphore); in ThrowException()
933 exceptions=(LinkedListInfo *) exception->exceptions; in ThrowException()
938 UnlockSemaphoreInfo(exception->semaphore); in ThrowException()
944 UnlockSemaphoreInfo(exception->semaphore); in ThrowException()
950 (LocaleCompare(exception->reason,reason) == 0) && in ThrowException()
951 (LocaleCompare(exception->description,description) == 0)) in ThrowException()
953 UnlockSemaphoreInfo(exception->semaphore); in ThrowException()
959 UnlockSemaphoreInfo(exception->semaphore); in ThrowException()
970 if (p->severity > exception->severity) in ThrowException()
972 exception->severity=p->severity; in ThrowException()
973 exception->reason=p->reason; in ThrowException()
974 exception->description=p->description; in ThrowException()
976 UnlockSemaphoreInfo(exception->semaphore); in ThrowException()
978 (void) ThrowMagickException(exception,GetMagickModule(), in ThrowException()
1024 ExceptionInfo *exception,const char *module,const char *function, in ThrowMagickExceptionList() argument
1046 assert(exception != (ExceptionInfo *) NULL); in ThrowMagickExceptionList()
1047 assert(exception->signature == MagickCoreSignature); in ThrowMagickExceptionList()
1070 (void) ThrowException(exception,severity,message,(char *) NULL); in ThrowMagickExceptionList()
1074 MagickExport MagickBooleanType ThrowMagickException(ExceptionInfo *exception, in ThrowMagickException() argument
1085 status=ThrowMagickExceptionList(exception,module,function,line,severity,tag, in ThrowMagickException()