Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 25 of 2367) sorted by relevance

12345678910>>...95

/external/ImageMagick/MagickCore/
Dexception.c110 *exception; in AcquireExceptionInfo() local
112 exception=(ExceptionInfo *) AcquireMagickMemory(sizeof(*exception)); in AcquireExceptionInfo()
113 if (exception == (ExceptionInfo *) NULL) in AcquireExceptionInfo()
115 InitializeExceptionInfo(exception); in AcquireExceptionInfo()
116 exception->relinquish=MagickTrue; in AcquireExceptionInfo()
117 return(exception); in AcquireExceptionInfo()
144 static void *DestroyExceptionElement(void *exception) in DestroyExceptionElement() argument
149 p=(ExceptionInfo *) exception; in DestroyExceptionElement()
158 MagickExport void ClearMagickException(ExceptionInfo *exception) in ClearMagickException() argument
160 assert(exception != (ExceptionInfo *) NULL); in ClearMagickException()
[all …]
Dfx.c134 *exception; member
166 ExceptionInfo *exception) in AcquireFxInfo() argument
184 fx_info->exception=AcquireExceptionInfo(); in AcquireFxInfo()
198 fx_info->view[i]=AcquireVirtualCacheView(next,exception); in AcquireFxInfo()
271 const double attenuate,ExceptionInfo *exception) in AddNoiseImage() argument
306 assert(exception != (ExceptionInfo *) NULL); in AddNoiseImage()
307 assert(exception->signature == MagickCoreSignature); in AddNoiseImage()
309 noise_image=AccelerateAddNoiseImage(image,noise_type,exception); in AddNoiseImage()
313 noise_image=CloneImage(image,image->columns,image->rows,MagickTrue,exception); in AddNoiseImage()
316 if (SetImageStorageClass(noise_image,DirectClass,exception) == MagickFalse) in AddNoiseImage()
[all …]
Dconstitute.c134 ExceptionInfo *exception) in ConstituteImage() argument
148 assert(exception != (ExceptionInfo *) NULL); in ConstituteImage()
149 assert(exception->signature == MagickCoreSignature); in ConstituteImage()
150 image=AcquireImage((ImageInfo *) NULL,exception); in ConstituteImage()
157 (void) SetImageBackgroundColor(image,exception); in ConstituteImage()
158 status=ImportImagePixels(image,0,0,columns,rows,map,storage,pixels,exception); in ConstituteImage()
210 ExceptionInfo *exception) in PingImage() argument
223 assert(exception != (ExceptionInfo *) NULL); in PingImage()
226 image=ReadStream(ping_info,&PingStream,exception); in PingImage()
231 (void) IdentifyImage(image,stdout,MagickFalse,exception); in PingImage()
[all …]
Dchannel.c119 const Quantum pixel,ExceptionInfo *exception) in ChannelImage() argument
136 source_view=AcquireVirtualCacheView(source_image,exception); in ChannelImage()
137 destination_view=AcquireAuthenticCacheView(destination_image,exception); in ChannelImage()
162 exception); in ChannelImage()
164 destination_image->columns,1,exception); in ChannelImage()
186 if (SyncCacheViewAuthenticPixels(destination_view,exception) == MagickFalse) in ChannelImage()
195 ExceptionInfo *exception) in ChannelFxImage() argument
234 assert(exception != (ExceptionInfo *) NULL); in ChannelFxImage()
235 assert(exception->signature == MagickCoreSignature); in ChannelFxImage()
237 destination_image=CloneImage(source_image,0,0,MagickTrue,exception); in ChannelFxImage()
[all …]
Dcompare.c128 const MetricType metric,double *distortion,ExceptionInfo *exception) in CompareImages() argument
173 exception); in CompareImages()
181 difference_image=ExtentImage(image,&geometry,exception); in CompareImages()
184 (void) SetImageAlphaChannel(difference_image,OpaqueAlphaChannel,exception); in CompareImages()
185 highlight_image=CloneImage(image,columns,rows,MagickTrue,exception); in CompareImages()
191 status=SetImageStorageClass(highlight_image,DirectClass,exception); in CompareImages()
198 (void) SetImageAlphaChannel(highlight_image,OpaqueAlphaChannel,exception); in CompareImages()
199 (void) QueryColorCompliance("#f1001ecc",AllCompliance,&highlight,exception); in CompareImages()
202 (void) QueryColorCompliance(artifact,AllCompliance,&highlight,exception); in CompareImages()
203 (void) QueryColorCompliance("#ffffffcc",AllCompliance,&lowlight,exception); in CompareImages()
[all …]
/external/apache-xml/src/main/java/org/apache/xpath/
DXPathException.java188 Throwable exception = m_exception; in printStackTrace() local
190 for (int i = 0; (i < 10) && (null != exception); i++) in printStackTrace()
193 exception.printStackTrace(s); in printStackTrace()
195 if (exception instanceof TransformerException) in printStackTrace()
197 TransformerException se = (TransformerException) exception; in printStackTrace()
198 Throwable prev = exception; in printStackTrace()
200 exception = se.getException(); in printStackTrace()
202 if (prev == exception) in printStackTrace()
207 exception = null; in printStackTrace()
221 Throwable exception = m_exception; in getMessage() local
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/error/
DMarkedYAMLExceptionTest.java24 MarkedYAMLException exception = new MarkedYAMLException(null, null, "Error happened", mark); in testToString1() local
25 assertTrue(exception.toString().contains("Error happened")); in testToString1()
26 assertTrue(exception.toString().contains("The first line")); in testToString1()
27 assertTrue(exception.toString(), exception.toString().contains("test1")); in testToString1()
32 MarkedYAMLException exception = new MarkedYAMLException("See http://www.google.com", mark, in testToString2() local
34 assertTrue(exception.toString().contains("Error2 happened")); in testToString2()
35 assertTrue(exception.toString().contains("The first line")); in testToString2()
36 assertTrue(exception.toString().contains("search")); in testToString2()
40 MarkedYAMLException exception = new MarkedYAMLException("See http://www.google.com", null, in testToString3() local
42 assertTrue(exception.toString().contains("Note1")); in testToString3()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/utils/
DDefaultErrorHandler.java117 public void warning(SAXParseException exception) throws SAXException in warning() argument
121 printLocation(pw, exception); in warning()
122 pw.println("Parser warning: " + exception.getMessage()); in warning()
146 public void error(SAXParseException exception) throws SAXException in error() argument
151 throw exception; in error()
173 public void fatalError(SAXParseException exception) throws SAXException in fatalError() argument
178 throw exception; in fatalError()
198 public void warning(TransformerException exception) throws TransformerException in warning() argument
202 printLocation(pw, exception); in warning()
203 pw.println(exception.getMessage()); in warning()
[all …]
/external/ImageMagick/coders/
Dycbcr.c100 ExceptionInfo *exception) in ReadYCBCRImage() argument
146 assert(exception != (ExceptionInfo *) NULL); in ReadYCBCRImage()
147 assert(exception->signature == MagickCoreSignature); in ReadYCBCRImage()
148 image=AcquireImage(image_info,exception); in ReadYCBCRImage()
151 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadYCBCRImage()
154 SetImageColorspace(image,YCbCrColorspace,exception); in ReadYCBCRImage()
157 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadYCBCRImage()
164 ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile", in ReadYCBCRImage()
171 exception); in ReadYCBCRImage()
173 exception); in ReadYCBCRImage()
[all …]
Dcmyk.c100 ExceptionInfo *exception) in ReadCMYKImage() argument
139 assert(exception != (ExceptionInfo *) NULL); in ReadCMYKImage()
140 assert(exception->signature == MagickCoreSignature); in ReadCMYKImage()
141 image=AcquireImage(image_info,exception); in ReadCMYKImage()
144 SetImageColorspace(image,CMYKColorspace,exception); in ReadCMYKImage()
147 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadCMYKImage()
154 ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile", in ReadCMYKImage()
161 exception); in ReadCMYKImage()
163 exception); in ReadCMYKImage()
201 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadCMYKImage()
[all …]
Dbgr.c101 ExceptionInfo *exception) in ReadBGRImage() argument
140 assert(exception != (ExceptionInfo *) NULL); in ReadBGRImage()
141 assert(exception->signature == MagickCoreSignature); in ReadBGRImage()
142 image=AcquireImage(image_info,exception); in ReadBGRImage()
147 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadBGRImage()
154 ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile", in ReadBGRImage()
161 exception); in ReadBGRImage()
163 exception); in ReadBGRImage()
208 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadBGRImage()
238 ThrowFileException(exception,CorruptImageError, in ReadBGRImage()
[all …]
Drgb.c100 static Image *ReadRGBImage(const ImageInfo *image_info,ExceptionInfo *exception) in ReadRGBImage() argument
139 assert(exception != (ExceptionInfo *) NULL); in ReadRGBImage()
140 assert(exception->signature == MagickCoreSignature); in ReadRGBImage()
141 image=AcquireImage(image_info,exception); in ReadRGBImage()
146 status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); in ReadRGBImage()
153 ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile", in ReadRGBImage()
160 exception); in ReadRGBImage()
162 exception); in ReadRGBImage()
207 status=SetImageExtent(image,image->columns,image->rows,exception); in ReadRGBImage()
237 ThrowFileException(exception,CorruptImageError, in ReadRGBImage()
[all …]
Dplasma.c95 double y,ExceptionInfo *exception) in PlasmaPixel() argument
101 exception); in PlasmaPixel()
110 (void) SyncAuthenticPixels(image,exception); in PlasmaPixel()
114 ExceptionInfo *exception) in ReadPlasmaImage() argument
151 image=ReadImage(read_info,exception); in ReadPlasmaImage()
155 (void) SetImageStorageClass(image,DirectClass,exception); in ReadPlasmaImage()
158 q=GetAuthenticPixels(image,0,y,image->columns,1,exception); in ReadPlasmaImage()
166 if (SyncAuthenticPixels(image,exception) == MagickFalse) in ReadPlasmaImage()
181 (void) SetImageColorspace(image,sRGBColorspace,exception); in ReadPlasmaImage()
183 PlasmaPixel(image,random_info,segment_info.x1,segment_info.y1,exception); in ReadPlasmaImage()
[all …]
Dfax.c133 static Image* FaxReadG3(Image *image,ExceptionInfo *exception) in FaxReadG3() argument
138 status=HuffmanDecodeImage(image,exception); in FaxReadG3()
140 ThrowFileException(exception,CorruptImageError,"UnableToReadImageData", in FaxReadG3()
143 ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile", in FaxReadG3()
150 ExceptionInfo *exception) in FaxReadG4() argument
159 if (ImageToFile(image,filename,exception) == MagickFalse) in FaxReadG4()
168 image=ReadImage(read_info,exception); in FaxReadG4()
182 static Image *ReadFAXImage(const ImageInfo *image_info,ExceptionInfo *exception) in ReadFAXImage() argument
198 assert(exception != (ExceptionInfo *) NULL); in ReadFAXImage()
199 assert(exception->signature == MagickCoreSignature); in ReadFAXImage()
[all …]
Dmask.c93 ExceptionInfo *exception) in ReadMASKImage() argument
109 assert(exception != (ExceptionInfo *) NULL); in ReadMASKImage()
110 assert(exception->signature == MagickCoreSignature); in ReadMASKImage()
114 image=ReadImage(read_info,exception); in ReadMASKImage()
121 status=GrayscaleImage(image,image->intensity,exception); in ReadMASKImage()
215 static Image *MaskImage(const Image *image,ExceptionInfo *exception) in MaskImage() argument
231 exception); in MaskImage()
234 if (SetImageStorageClass(mask_image,DirectClass,exception) == MagickFalse) in MaskImage()
240 (void) SetImageColorspace(mask_image,GRAYColorspace,exception); in MaskImage()
245 image_view=AcquireVirtualCacheView(image,exception); in MaskImage()
[all …]
/external/ImageMagick/PerlMagick/
DMagick.xs113 #define InheritPerlException(exception,perl_exception) \ argument
118 if ((exception)->severity != UndefinedException) \
121 (exception)->severity, (exception)->reason ? \
122 GetLocaleExceptionMessage((exception)->severity,(exception)->reason) : \
123 "Unknown", (exception)->description ? " (" : "", \
124 (exception)->description ? GetLocaleExceptionMessage( \
125 (exception)->severity,(exception)->description) : "", \
126 (exception)->description ? ")" : ""); \
136 #define ThrowPerlException(exception,severity,tag,reason) \ argument
137 (void) ThrowMagickException(exception,GetMagickModule(),severity, \
[all …]
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/
DNumberOfInvocationsInOrderCheckerTest.java39 public ExpectedException exception = ExpectedException.none(); field in NumberOfInvocationsInOrderCheckerTest
71 exception.expect(VerificationInOrderFailure.class); in shouldReportTooLittleInvocations()
72 exception.expectMessage("mock.simpleMethod()"); in shouldReportTooLittleInvocations()
73 exception.expectMessage("Wanted 4 times"); in shouldReportTooLittleInvocations()
74 exception.expectMessage("But was 2 times"); in shouldReportTooLittleInvocations()
96 exception.expect(VerificationInOrderFailure.class); in shouldReportTooLittleActual()
97 exception.expectMessage("mock.simpleMethod()"); in shouldReportTooLittleActual()
98 exception.expectMessage("Wanted 100 times"); in shouldReportTooLittleActual()
99 exception.expectMessage("But was 2 times"); in shouldReportTooLittleActual()
109 exception.expect(VerificationInOrderFailure.class); in shouldReportWithLastInvocationStackTrace()
[all …]
DNumberOfInvocationsCheckerTest.java42 public ExpectedException exception = ExpectedException.none(); field in NumberOfInvocationsCheckerTest
52 exception.expect(TooLittleActualInvocations.class); in shouldReportTooLittleActual()
53 exception.expectMessage("mock.simpleMethod()"); in shouldReportTooLittleActual()
54 exception.expectMessage("Wanted 100 times"); in shouldReportTooLittleActual()
55 exception.expectMessage("But was 2 times"); in shouldReportTooLittleActual()
65 exception.expect(TooLittleActualInvocations.class); in shouldReportWithLastInvocationStackTrace()
66 exception.expectMessage("mock.simpleMethod()"); in shouldReportWithLastInvocationStackTrace()
67 exception.expectMessage("Wanted 100 times"); in shouldReportWithLastInvocationStackTrace()
68 exception.expectMessage("But was 2 times"); in shouldReportWithLastInvocationStackTrace()
69 exception.expectMessage(containsTimes("-> at", 2)); in shouldReportWithLastInvocationStackTrace()
[all …]
/external/ImageMagick/MagickWand/
Dmogrify.c122 ExceptionInfo *exception) in MagickCommandGenesis() argument
169 DistributePixelCacheServer(StringToInteger(argv[++i]),exception); in MagickCommandGenesis()
183 status=command(image_info,argc,argv,&text,exception); in MagickCommandGenesis()
184 if (exception->severity != UndefinedException) in MagickCommandGenesis()
186 if ((exception->severity > ErrorException) || in MagickCommandGenesis()
189 CatchException(exception); in MagickCommandGenesis()
229 status=command(image_info,argc,argv,&text,exception); in MagickCommandGenesis()
230 if (exception->severity != UndefinedException) in MagickCommandGenesis()
232 if ((exception->severity > ErrorException) || in MagickCommandGenesis()
235 CatchException(exception); in MagickCommandGenesis()
[all …]
Dmagick-wand.c88 ClearMagickException(wand->exception); in ClearMagickWand()
131 clone_wand->exception=AcquireExceptionInfo(); in CloneMagickWand()
132 InheritException(clone_wand->exception,wand->exception); in CloneMagickWand()
134 clone_wand->images=CloneImageList(wand->images,clone_wand->exception); in CloneMagickWand()
175 if (wand->exception != (ExceptionInfo *) NULL ) in DestroyMagickWand()
176 wand->exception=DestroyExceptionInfo(wand->exception); in DestroyMagickWand()
244 ClearMagickException(wand->exception); in MagickClearException()
284 *severity=wand->exception->severity; in MagickGetException()
289 (void) ThrowMagickException(wand->exception,GetMagickModule(),WandError, in MagickGetException()
294 if (wand->exception->reason != (char *) NULL) in MagickGetException()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCheckUtf8Test.java69 } catch (IllegalArgumentException exception) { in testBuildRequiredStringWithBadUtf8()
70 assertEquals("Byte string is not UTF-8.", exception.getMessage()); in testBuildRequiredStringWithBadUtf8()
78 } catch (IllegalArgumentException exception) { in testBuildOptionalStringWithBadUtf8()
79 assertEquals("Byte string is not UTF-8.", exception.getMessage()); in testBuildOptionalStringWithBadUtf8()
87 } catch (IllegalArgumentException exception) { in testBuildRepeatedStringWithBadUtf8()
88 assertEquals("Byte string is not UTF-8.", exception.getMessage()); in testBuildRepeatedStringWithBadUtf8()
98 } catch (InvalidProtocolBufferException exception) { in testParseRequiredStringWithBadUtf8()
99 assertEquals("Protocol message had invalid UTF-8.", exception.getMessage()); in testParseRequiredStringWithBadUtf8()
107 } catch (IllegalArgumentException exception) { in testBuildRequiredStringWithBadUtf8Size()
108 assertEquals("Byte string is not UTF-8.", exception.getMessage()); in testBuildRequiredStringWithBadUtf8Size()
[all …]
/external/lzma/Java/Tukaani/src/org/tukaani/xz/
DDeltaOutputStream.java23 private IOException exception = null; field in DeltaOutputStream
45 if (exception != null) in write()
46 throw exception; in write()
62 exception = e; in write()
68 if (exception != null) in flush()
69 throw exception; in flush()
77 exception = e; in flush()
84 if (exception != null) in finish()
85 throw exception; in finish()
90 exception = e; in finish()
[all …]
DUncompressedLZMA2OutputStream.java25 private IOException exception = null; field in UncompressedLZMA2OutputStream
51 if (exception != null) in write()
52 throw exception; in write()
68 exception = e; in write()
82 if (exception != null) in writeEndMarker()
83 throw exception; in writeEndMarker()
94 exception = e; in writeEndMarker()
100 if (exception != null) in flush()
101 throw exception; in flush()
112 exception = e; in flush()
[all …]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/
DInvokeMethodTest.java143 TaggedObject exception = reply.getNextValueAsTaggedObject(); in makeNewInstance() local
145 + exception.tag + " exception.objectID=" + exception.objectID); in makeNewInstance()
153 assertTrue("exception must be != null", exception != null); in makeNewInstance()
154 assertTrue("exception.objectID must be == 0", exception.objectID == 0); in makeNewInstance()
155 assertEquals("Invalid exception.tag,", JDWPConstants.Tag.OBJECT_TAG, exception.tag in makeNewInstance()
157 , JDWPConstants.Tag.getName(exception.tag)); in makeNewInstance()
220 TaggedObject exception = reply.getNextValueAsTaggedObject(); in testInvokeMethod001() local
222 + exception.tag + " exception.objectID=" + exception.objectID); in testInvokeMethod001()
227 assertTrue("exception must be != null", exception != null); in testInvokeMethod001()
228 assertTrue("exception.objectID must be == 0", exception.objectID == 0); in testInvokeMethod001()
[all …]
/external/ImageMagick/PerlMagick/quantum/
Dquantum.xs.in113 #define InheritPerlException(exception,perl_exception) \ argument
118 if ((exception)->severity != UndefinedException) \
121 (exception)->severity, (exception)->reason ? \
122 GetLocaleExceptionMessage((exception)->severity,(exception)->reason) : \
123 "Unknown", (exception)->description ? " (" : "", \
124 (exception)->description ? GetLocaleExceptionMessage( \
125 (exception)->severity,(exception)->description) : "", \
126 (exception)->description ? ")" : ""); \
136 #define ThrowPerlException(exception,severity,tag,reason) \ argument
137 (void) ThrowMagickException(exception,GetMagickModule(),severity, \
[all …]

12345678910>>...95