Home
last modified time | relevance | path

Searched refs:error (Results 1 – 25 of 108) sorted by relevance

12345

/libcore/luni/src/main/native/
DJniException.cpp20 void jniThrowExceptionWithErrno(JNIEnv* env, const char* exceptionClassName, int error) { in jniThrowExceptionWithErrno() argument
22 jniThrowException(env, exceptionClassName, jniStrError(error, buf, sizeof(buf))); in jniThrowExceptionWithErrno()
25 void jniThrowBindException(JNIEnv* env, int error) { in jniThrowBindException() argument
26 jniThrowExceptionWithErrno(env, "java/net/BindException", error); in jniThrowBindException()
29 void jniThrowConnectException(JNIEnv* env, int error) { in jniThrowConnectException() argument
30 jniThrowExceptionWithErrno(env, "java/net/ConnectException", error); in jniThrowConnectException()
37 void jniThrowSecurityException(JNIEnv* env, int error) { in jniThrowSecurityException() argument
38 jniThrowExceptionWithErrno(env, "java/lang/SecurityException", error); in jniThrowSecurityException()
41 void jniThrowSocketException(JNIEnv* env, int error) { in jniThrowSocketException() argument
42 jniThrowExceptionWithErrno(env, "java/net/SocketException", error); in jniThrowSocketException()
[all …]
DJniException.h22 void jniThrowExceptionWithErrno(JNIEnv* env, const char* exceptionClassName, int error);
24 void jniThrowBindException(JNIEnv* env, int error);
25 void jniThrowConnectException(JNIEnv* env, int error);
27 void jniThrowSecurityException(JNIEnv* env, int error);
28 void jniThrowSocketException(JNIEnv* env, int error);
29 void jniThrowSocketTimeoutException(JNIEnv* env, int error);
Djava_util_regex_Pattern.cpp35 …d throwPatternSyntaxException(JNIEnv* env, UErrorCode status, jstring pattern, UParseError error) { in throwPatternSyntaxException() argument
40 jobject exception = env->NewObject(exceptionClass, method, message, pattern, error.offset); in throwPatternSyntaxException()
52 UParseError error; in Pattern_compileImpl() local
53 error.offset = -1; in Pattern_compileImpl()
57 RegexPattern* result = RegexPattern::compile(regexString, flags, error, status); in Pattern_compileImpl()
59 throwPatternSyntaxException(env, status, javaRegex, error); in Pattern_compileImpl()
Dzip.h27 static void throwExceptionForZlibError(JNIEnv* env, const char* exceptionClassName, int error) { in throwExceptionForZlibError() argument
28 if (error == Z_MEM_ERROR) { in throwExceptionForZlibError()
31 jniThrowException(env, exceptionClassName, zError(error)); in throwExceptionForZlibError()
/libcore/luni/src/main/java/org/apache/xml/utils/
DUnImplNode.java63 public void error(String msg) in error() method in UnImplNode
77 public void error(String msg, Object[] args) in error() method in UnImplNode
97 error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"appendChild not supported!"); in appendChild()
110 error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"hasChildNodes not supported!"); in hasChildNodes()
123 error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"getNodeType not supported!"); in getNodeType()
136 error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"getParentNode not supported!"); in getParentNode()
149 error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"getChildNodes not supported!"); in getChildNodes()
162 error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"getFirstChild not supported!"); in getFirstChild()
175 error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"getLastChild not supported!"); in getLastChild()
188 error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED); //"getNextSibling not supported!"); in getNextSibling()
[all …]
/libcore/luni/src/main/java/org/apache/xml/serializer/dom3/
DDOMErrorHandlerImpl.java47 public boolean handleError(DOMError error) { in handleError() argument
50 if (error.getSeverity() == DOMError.SEVERITY_WARNING) { in handleError()
53 } else if (error.getSeverity() == DOMError.SEVERITY_ERROR) { in handleError()
55 } else if (error.getSeverity() == DOMError.SEVERITY_FATAL_ERROR) { in handleError()
59 System.err.println(severity + ": " + error.getMessage() + "\t"); in handleError()
60 System.err.println("Type : " + error.getType() + "\t" + "Related Data: " in handleError()
61 + error.getRelatedData() + "\t" + "Related Exception: " in handleError()
62 + error.getRelatedException() ); in handleError()
/libcore/dom/src/test/java/org/w3c/domts/
DDOMErrorMonitor.java43 public boolean handleError(DOMError error) { in handleError() argument
44 errors.add(new DOMErrorImpl(error)); in handleError()
60 DOMError error = (DOMError) iter.next(); in assertLowerSeverity() local
61 if (error.getSeverity() >= severity) { in assertLowerSeverity()
62 testCase.fail(id + error.getMessage()); in assertLowerSeverity()
/libcore/luni/src/main/java/org/apache/xalan/transformer/
DMsgMgr.java195 public void error(SourceLocator srcLctr, String msg) throws TransformerException in error() method in MsgMgr
197 error(srcLctr, null, null, msg, null); in error()
212 public void error(SourceLocator srcLctr, String msg, Object[] args) throws TransformerException in error() method in MsgMgr
214 error(srcLctr, null, null, msg, args); in error()
229 public void error(SourceLocator srcLctr, String msg, Exception e) throws TransformerException in error() method in MsgMgr
231 error(srcLctr, msg, null, e); in error()
247 …public void error(SourceLocator srcLctr, String msg, Object args[], Exception e) throws Transforme… in error() method in MsgMgr
278 public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg) in error() method in MsgMgr
281 error(srcLctr, styleNode, sourceNode, msg, null); in error()
298 …public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg, Object args[… in error() method in MsgMgr
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
DUnsupportedClassVersionErrorTest.java32 UnsupportedClassVersionError error = new UnsupportedClassVersionError(); in test_UnsupportedClassVersionError() local
33 assertNotNull(error); in test_UnsupportedClassVersionError()
34 assertNull(error.getMessage()); in test_UnsupportedClassVersionError()
/libcore/luni/src/main/java/com/ibm/icu4jni/common/
DErrorCode.java29 public static final RuntimeException getException(int error) in getException() argument
31 if (error <= U_ZERO_ERROR && error >= U_ERROR_LIMIT) { in getException()
35 switch (error) { in getException()
/libcore/xml/src/main/java/org/kxml2/io/
DKXmlParser.java94 private String error; field in KXmlParser
167 error("illegal empty namespace"); in adjustNsp()
237 error("illegal tag name: " + name); in adjustNsp()
248 error("undefined prefix: " + prefix); in adjustNsp()
263 private final void error(String desc) throws XmlPullParserException { in error() method in KXmlParser
265 if (error == null) in error()
266 error = "ERR: " + desc; in error()
304 if (error != null) {
305 for (int i = 0; i < error.length(); i++)
306 push(error.charAt(i));
[all …]
/libcore/luni/src/test/java/tests/api/java/lang/ref/
DReferenceTest.java43 static AssertionFailedError error; field in ReferenceTest
60 error = new AssertionFailedError("Clear should happen " + in clear()
62 throw error; in clear()
65 error = new AssertionFailedError("Clear should happen " + in clear()
67 throw error; in clear()
75 error = new AssertionFailedError("Clear should happen " + in enqueue()
77 throw error; in enqueue()
271 error = null; in test_subclass()
398 error = null; in test_finalizeReferenceInteraction()
419 error = new AssertionFailedError("something threw '" + t + in test_finalizeReferenceInteraction()
[all …]
/libcore/luni/src/main/java/org/apache/xalan/templates/
DElemApplyImport.java76 transformer.getMsgMgr().error(this, in execute()
89 transformer.getMsgMgr().error(this, in execute()
105 error(XSLTErrorResources.ER_CANNOT_ADD, in appendChild()
DAVT.java197 String error = null; // if non-null, break from loop in AVT() local
294 error = XSLMessages.createMessage( in AVT()
337 if (error != null) in AVT()
347error = XSLMessages.createMessage(XSLTErrorResources.ER_ILLEGAL_ATTRIBUTE_VALUE, new Object[]{ nam… in AVT()
398 if (null != error) in AVT()
403 new Object[]{ error }); //"Attr Template, "+error); in AVT()
/libcore/luni/src/main/java/org/apache/xpath/objects/
DXObject.java238 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER, in num()
266 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NUMBER, in bool()
412 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST, in iter()
439 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST, in nodeset()
455 error(XPATHErrorResources.ER_CANT_CONVERT_TO_NODELIST, in nodelist()
473 error(XPATHErrorResources.ER_CANT_CONVERT_TO_MUTABLENODELIST, in mutableNodeset()
518 error(XPATHErrorResources.ER_CANT_CONVERT_TO_TYPE, in castToType()
682 protected void error(String msg) in error() method in XObject
685 error(msg, null); in error()
697 protected void error(String msg, Object[] args) in error() method in XObject
/libcore/luni/src/main/java/java/util/logging/
DStreamHandler.java142 getErrorManager().error("Exception occurred when writing to the output stream", e, in write()
239 getErrorManager().error("Exception occurred when closing the output stream", e, in close()
274 getErrorManager().error("Exception occurred when flushing the output stream", in flush()
306 getErrorManager().error("Exception occurred when formatting the log record", in publish()
312 getErrorManager().error("Exception occurred when logging the record", e, in publish()
DSocketHandler.java128 getErrorManager().error("Failed to establish the network connection", e, in initSocket()
151 getErrorManager().error("Exception occurred when closing the socket handler", e, in close()
/libcore/luni/src/main/java/java/lang/
DRuntime.java392 String error = nativeLoad(filename, loader); in load() local
393 if (error != null) { in load()
394 throw new UnsatisfiedLinkError(error); in load()
432 String error = nativeLoad(filename, loader); in loadLibrary() local
433 if (error != null) { in loadLibrary()
434 throw new UnsatisfiedLinkError(error); in loadLibrary()
446 String error = nativeLoad(candidate, loader); in loadLibrary() local
447 if (error == null) { in loadLibrary()
450 lastError = error; in loadLibrary()
/libcore/luni/src/test/java/org/apache/harmony/xml/
DXsltXPathConformanceTestSuite.java374 if (errorRecorder.error == null) { in test()
383 if (errorRecorder.error != null) { in test()
384 throw errorRecorder.error; in test()
387 if (errorRecorder.error != null) { in test()
464 Error error = new AssertionFailedError( in fileToResultNode()
466 error.initCause(e); in fileToResultNode()
467 throw error; in fileToResultNode()
615 Exception error; field in XsltXPathConformanceTestSuite.ErrorRecorder
623 public void error(TransformerException exception) { in error() method in XsltXPathConformanceTestSuite.ErrorRecorder
624 if (this.error == null) { in error()
[all …]
/libcore/luni/src/main/java/org/apache/xalan/processor/
DProcessorExsltFuncResult.java60 handler.error(msg, new SAXException(msg)); in startElement()
67 handler.error(msg, new SAXException(msg)); in startElement()
DProcessorKey.java109 handler.error(attributes.getQName(i) in setPropertiesFromAttributes()
119 handler.error( in setPropertiesFromAttributes()
149 handler.error( in setPropertiesFromAttributes()
DProcessorNamespaceAlias.java84 …handler.error(XSLTErrorResources.ER_INVALID_NAMESPACE_URI_VALUE_FOR_RESULT_PREFIX_FOR_DEFAULT, nul… in startElement()
90 …handler.error(XSLTErrorResources.ER_INVALID_NAMESPACE_URI_VALUE_FOR_RESULT_PREFIX, new Object[] {p… in startElement()
DProcessorExsltFunction.java70 handler.error(msg, new SAXException(msg)); in startElement()
87 handler.error(msg, new SAXException(msg)); in startElement()
134 handler.error(msg, new SAXException(msg)); in validate()
154 handler.error(msg, new SAXException(msg)); in validate()
/libcore/
DNativeCode.mk46 $$(error $(LOCAL_PATH)/$(1)/sub.mk should not include CLEAR_VARS \
50 $$(error $(LOCAL_PATH)/$(1)/sub.mk should not define LOCAL_PATH)
59 $(error No native code defined for libcore)
/libcore/luni/src/main/java/org/w3c/dom/
DDOMErrorHandler.java43 public boolean handleError(DOMError error); in handleError() argument

12345