Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 247) sorted by relevance

12345678910

/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatter.java156 String msg = ex.getMessage(); in assertGoodErrorDate()
157 assertTrue(msg.contains(expectedText), msg); in assertGoodErrorDate()
158 assertTrue(msg.contains("Year"), msg); in assertGoodErrorDate()
159 assertTrue(msg.contains("MinuteOfHour"), msg); in assertGoodErrorDate()
160 assertTrue(msg.contains("DayOfMonth"), msg); in assertGoodErrorDate()
171 String msg = ex.getMessage(); in assertGoodErrorTime()
172 assertTrue(msg.contains(expectedText), msg); in assertGoodErrorTime()
173 assertTrue(msg.contains("HourOfDay"), msg); in assertGoodErrorTime()
174 assertTrue(msg.contains("MonthOfYear"), msg); in assertGoodErrorTime()
175 assertTrue(msg.contains("SecondOfMinute"), msg); in assertGoodErrorTime()
[all …]
/libcore/ojluni/src/main/java/sun/util/logging/
DPlatformLogger.java305 public void severe(String msg) { in severe() argument
306 loggerProxy.doLog(Level.SEVERE, msg); in severe()
309 public void severe(String msg, Throwable t) { in severe() argument
310 loggerProxy.doLog(Level.SEVERE, msg, t); in severe()
313 public void severe(String msg, Object... params) { in severe() argument
314 loggerProxy.doLog(Level.SEVERE, msg, params); in severe()
320 public void warning(String msg) { in warning() argument
321 loggerProxy.doLog(Level.WARNING, msg); in warning()
324 public void warning(String msg, Throwable t) { in warning() argument
325 loggerProxy.doLog(Level.WARNING, msg, t); in warning()
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DSunCertPathBuilderException.java64 public SunCertPathBuilderException(String msg) { in SunCertPathBuilderException() argument
65 super(msg); in SunCertPathBuilderException()
92 public SunCertPathBuilderException(String msg, Throwable cause) { in SunCertPathBuilderException() argument
93 super(msg, cause); in SunCertPathBuilderException()
103 SunCertPathBuilderException(String msg, AdjacencyList adjList) { in SunCertPathBuilderException() argument
104 this(msg); in SunCertPathBuilderException()
116 SunCertPathBuilderException(String msg, Throwable cause, in SunCertPathBuilderException() argument
119 this(msg, cause); in SunCertPathBuilderException()
DBasicChecker.java161 String msg = "signature"; in verifySignature() local
163 debug.println("---checking " + msg + "..."); in verifySignature()
173 (msg + " check failed", e, null, -1, in verifySignature()
176 throw new CertPathValidatorException(msg + " check failed", e); in verifySignature()
180 debug.println(msg + " verified."); in verifySignature()
189 String msg = "timestamp"; in verifyTimestamp() local
191 debug.println("---checking " + msg + ":" + date.toString() + "..."); in verifyTimestamp()
197 (msg + " check failed", e, null, -1, BasicReason.EXPIRED); in verifyTimestamp()
200 (msg + " check failed", e, null, -1, BasicReason.NOT_YET_VALID); in verifyTimestamp()
204 debug.println(msg + " verified."); in verifyTimestamp()
[all …]
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestIncompatibleException.java25 private final String msg; field in DOMTestIncompatibleException
27 private DOMTestIncompatibleException(String msg) { in DOMTestIncompatibleException() argument
28 this.msg = msg; in DOMTestIncompatibleException()
38 msg = ex.toString(); in DOMTestIncompatibleException()
42 msg = setting.toString(); in DOMTestIncompatibleException()
45 msg = super.toString(); in DOMTestIncompatibleException()
73 return msg; in toString()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixException.java39 private String msg; field in UnixException
43 this.msg = null; in UnixException()
46 UnixException(String msg) { in UnixException() argument
48 this.msg = msg; in UnixException()
57 this.msg = null; in setError()
61 if (msg != null) { in errorString()
62 return msg; in errorString()
85 if (msg != null) in translateToIOException()
86 return new IOException(msg); in translateToIOException()
/libcore/ojluni/src/main/native/
Djni_util.h49 JNU_ThrowByName(JNIEnv *env, const char *name, const char *msg);
53 JNU_ThrowNullPointerException(JNIEnv *env, const char *msg);
56 JNU_ThrowArrayIndexOutOfBoundsException(JNIEnv *env, const char *msg);
59 JNU_ThrowOutOfMemoryError(JNIEnv *env, const char *msg);
62 JNU_ThrowIllegalArgumentException(JNIEnv *env, const char *msg);
65 JNU_ThrowIllegalAccessError(JNIEnv *env, const char *msg);
68 JNU_ThrowIllegalAccessException(JNIEnv *env, const char *msg);
71 JNU_ThrowInternalError(JNIEnv *env, const char *msg);
74 JNU_ThrowIOException(JNIEnv *env, const char *msg);
77 JNU_ThrowNoSuchFieldException(JNIEnv *env, const char *msg);
[all …]
DZipFile.c63 ThrowZipException(JNIEnv *env, const char *msg) in ThrowZipException() argument
68 if (msg != NULL) { in ThrowZipException()
69 s = JNU_NewStringPlatform(env, msg); in ThrowZipException()
86 char *msg = 0; in ZipFile_open() local
96 zip = ZIP_Get_From_Cache(path, &msg, lastModified); in ZipFile_open()
97 if (zip == 0 && msg == 0) { in ZipFile_open()
113 zip = ZIP_Put_In_Cache0(env, thiz, path, zfd, &msg, lastModified, usemmap); in ZipFile_open()
118 } else if (msg != 0) { in ZipFile_open()
119 ThrowZipException(env, msg); in ZipFile_open()
120 free(msg); in ZipFile_open()
[all …]
Djni_util.c45 JNU_ThrowByName(JNIEnv *env, const char *name, const char *msg) in JNU_ThrowByName() argument
50 (*env)->ThrowNew(env, cls, msg); in JNU_ThrowByName()
56 JNU_ThrowNullPointerException(JNIEnv *env, const char *msg) in JNU_ThrowNullPointerException() argument
58 JNU_ThrowByName(env, "java/lang/NullPointerException", msg); in JNU_ThrowNullPointerException()
62 JNU_ThrowArrayIndexOutOfBoundsException(JNIEnv *env, const char *msg) in JNU_ThrowArrayIndexOutOfBoundsException() argument
64 JNU_ThrowByName(env, "java/lang/ArrayIndexOutOfBoundsException", msg); in JNU_ThrowArrayIndexOutOfBoundsException()
68 JNU_ThrowOutOfMemoryError(JNIEnv *env, const char *msg) in JNU_ThrowOutOfMemoryError() argument
70 JNU_ThrowByName(env, "java/lang/OutOfMemoryError", msg); in JNU_ThrowOutOfMemoryError()
74 JNU_ThrowIllegalArgumentException(JNIEnv *env, const char *msg) in JNU_ThrowIllegalArgumentException() argument
76 JNU_ThrowByName(env, "java/lang/IllegalArgumentException", msg); in JNU_ThrowIllegalArgumentException()
[all …]
/libcore/ojluni/src/main/java/java/security/cert/
DCertPathValidatorException.java98 public CertPathValidatorException(String msg) { in CertPathValidatorException() argument
99 this(msg, null); in CertPathValidatorException()
128 public CertPathValidatorException(String msg, Throwable cause) { in CertPathValidatorException() argument
129 this(msg, cause, null, -1); in CertPathValidatorException()
149 public CertPathValidatorException(String msg, Throwable cause, in CertPathValidatorException() argument
151 this(msg, cause, certPath, index, BasicReason.UNSPECIFIED); in CertPathValidatorException()
175 public CertPathValidatorException(String msg, Throwable cause, in CertPathValidatorException() argument
177 super(msg, cause); in CertPathValidatorException()
DCertStoreException.java70 public CertStoreException(String msg) { in CertStoreException() argument
71 super(msg); in CertStoreException()
99 public CertStoreException(String msg, Throwable cause) { in CertStoreException() argument
100 super(msg, cause); in CertStoreException()
DCertPathBuilderException.java70 public CertPathBuilderException(String msg) { in CertPathBuilderException() argument
71 super(msg); in CertPathBuilderException()
100 public CertPathBuilderException(String msg, Throwable cause) { in CertPathBuilderException() argument
101 super(msg, cause); in CertPathBuilderException()
/libcore/ojluni/src/main/java/java/util/logging/
DLogger.java783 public void log(Level level, String msg) { in log() argument
787 LogRecord lr = new LogRecord(level, msg); in log()
824 public void log(Level level, String msg, Object param1) { in log() argument
828 LogRecord lr = new LogRecord(level, msg); in log()
845 public void log(Level level, String msg, Object params[]) { in log() argument
849 LogRecord lr = new LogRecord(level, msg); in log()
870 public void log(Level level, String msg, Throwable thrown) { in log() argument
874 LogRecord lr = new LogRecord(level, msg); in log()
924 public void logp(Level level, String sourceClass, String sourceMethod, String msg) { in logp() argument
928 LogRecord lr = new LogRecord(level, msg); in logp()
[all …]
/libcore/ojluni/src/main/java/java/util/zip/
DInflaterOutputStream.java165 String msg = ex.getMessage(); in flush()
166 if (msg == null) { in flush()
167 msg = "Invalid ZLIB data format"; in flush()
169 throw new ZipException(msg); in flush()
263 String msg = ex.getMessage(); in write()
264 if (msg == null) { in write()
265 msg = "Invalid ZLIB data format"; in write()
267 throw new ZipException(msg); in write()
/libcore/ojluni/src/main/java/java/net/
DBindException.java47 public BindException(String msg) { in BindException() argument
48 super(msg); in BindException()
58 public BindException(String msg, Throwable cause) { in BindException() argument
59 super(msg, cause); in BindException()
DPortUnreachableException.java44 public PortUnreachableException(String msg) { in PortUnreachableException() argument
45 super(msg); in PortUnreachableException()
56 public PortUnreachableException(String msg, Throwable cause) { in PortUnreachableException() argument
57 super(msg, cause); in PortUnreachableException()
DConnectException.java47 public ConnectException(String msg) { in ConnectException() argument
48 super(msg); in ConnectException()
58 public ConnectException(String msg, Throwable cause) { in ConnectException() argument
59 super(msg, cause); in ConnectException()
DSocketException.java47 public SocketException(String msg) { in SocketException() argument
48 super(msg); in SocketException()
64 public SocketException(String msg, Throwable cause) { in SocketException() argument
65 super(msg, cause); in SocketException()
/libcore/luni/src/test/java/libcore/java/security/
DAccessControlExceptionTest.java35 String msg = "test message"; in testConstructor() local
39 throw new AccessControlException(msg); in testConstructor()
41 assertEquals(msg, e.getMessage()); in testConstructor()
45 throw new AccessControlException(msg, permission); in testConstructor()
47 assertEquals(msg, e.getMessage()); in testConstructor()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DProcess2Test.java46 StringBuilder msg = new StringBuilder(""); in test_getErrorStream() local
51 msg.append((char) c); in test_getErrorStream()
53 assertEquals("", msg.toString()); in test_getErrorStream()
67 StringBuilder msg = new StringBuilder(""); in test_getErrorStream() local
72 msg.append((char) c); in test_getErrorStream()
74 assertEquals("oops\n", msg.toString()); in test_getErrorStream()
/libcore/ojluni/src/main/java/java/util/
DServiceConfigurationError.java51 public ServiceConfigurationError(String msg) { in ServiceConfigurationError() argument
52 super(msg); in ServiceConfigurationError()
63 public ServiceConfigurationError(String msg, Throwable cause) { in ServiceConfigurationError() argument
64 super(msg, cause); in ServiceConfigurationError()
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DChunkHandler.java102 public static Chunk createFailChunk(int errorCode, String msg) { in createFailChunk() argument
103 if (msg == null) in createFailChunk()
104 msg = ""; in createFailChunk()
106 ByteBuffer out = ByteBuffer.allocate(8 + msg.length() * 2); in createFailChunk()
109 out.putInt(msg.length()); in createFailChunk()
110 final int len = msg.length(); in createFailChunk()
112 out.putChar(msg.charAt(i)); in createFailChunk()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleSyntaxException.java41 public LocaleSyntaxException(String msg) { in LocaleSyntaxException() argument
42 this(msg, 0); in LocaleSyntaxException()
45 public LocaleSyntaxException(String msg, int errorIndex) { in LocaleSyntaxException() argument
46 super(msg); in LocaleSyntaxException()
/libcore/luni/src/main/java/javax/xml/transform/
DTransformerConfigurationException.java41 public TransformerConfigurationException(String msg) { in TransformerConfigurationException() argument
42 super(msg); in TransformerConfigurationException()
64 public TransformerConfigurationException(String msg, Throwable e) { in TransformerConfigurationException() argument
65 super(msg, e); in TransformerConfigurationException()
/libcore/ojluni/src/test/java/util/Collection/testlibrary/
DCollectionAsserts.java127 public static<T> void assertContents(Iterable<T> actual, Iterable<T> expected, String msg) { in assertContents() argument
128 assertContents(actual.iterator(), expected.iterator(), msg); in assertContents() local
135 public static<T> void assertContents(Iterator<T> actual, Iterator<T> expected, String msg) { in assertContents() argument
144 (msg == null ? "" : msg), expectedData, history)); in assertContents()
152 (msg == null ? "" : msg), history, e, a)); in assertContents()
159 (msg == null ? "" : msg), rest, history)); in assertContents()
173 …le<? super T>> void assertContentsUnordered(Iterable<T> actual, Iterable<T> expected, String msg) { in assertContentsUnordered() argument
180 … assertTrue(allExpected.remove(t), msg + " element '" + String.valueOf(t) + "' not found"); in assertContentsUnordered()
183 assertTrue(allExpected.isEmpty(), msg + "expected contained additional elements"); in assertContentsUnordered() local

12345678910