Home
last modified time | relevance | path

Searched refs:message (Results 1 – 25 of 199) sorted by relevance

12345678

/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandleStatics.java128 /*non-public*/ static InternalError newInternalError(String message) { in newInternalError() argument
129 return new InternalError(message); in newInternalError()
131 /*non-public*/ static InternalError newInternalError(String message, Throwable cause) { in newInternalError() argument
132 return new InternalError(message, cause); in newInternalError()
137 /*non-public*/ static RuntimeException newIllegalStateException(String message) { in newIllegalStateException() argument
138 return new IllegalStateException(message); in newIllegalStateException()
140 /*non-public*/ static RuntimeException newIllegalStateException(String message, Object obj) { in newIllegalStateException() argument
141 return new IllegalStateException(message(message, obj)); in newIllegalStateException()
143 /*non-public*/ static RuntimeException newIllegalArgumentException(String message) { in newIllegalArgumentException() argument
144 return new IllegalArgumentException(message); in newIllegalArgumentException()
[all …]
DLambdaConversionException.java46 public LambdaConversionException(String message) { in LambdaConversionException() argument
47 super(message); in LambdaConversionException()
55 public LambdaConversionException(String message, Throwable cause) { in LambdaConversionException() argument
56 super(message, cause); in LambdaConversionException()
75 …public LambdaConversionException(String message, Throwable cause, boolean enableSuppression, boole… in LambdaConversionException() argument
76 super(message, cause, enableSuppression, writableStackTrace); in LambdaConversionException()
/libcore/luni/src/main/java/javax/xml/transform/
DTransformerException.java124 public TransformerException(String message) { in TransformerException() argument
126 super(message); in TransformerException()
155 public TransformerException(String message, Throwable e) { in TransformerException() argument
157 super(((message == null) || (message.length() == 0)) in TransformerException()
159 : message); in TransformerException()
175 public TransformerException(String message, SourceLocator locator) { in TransformerException() argument
177 super(message); in TransformerException()
191 public TransformerException(String message, SourceLocator locator, in TransformerException() argument
194 super(message); in TransformerException()
210 String message = super.getMessage(); in getMessageAndLocation() local
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DOldHttpRetryExceptionTest.java25 String [] message = {"Test message", "", "Message", "~!@#$% &*(", null}; in test_ConstructorLStringI() local
28 for(int i = 0; i < message.length; i++) { in test_ConstructorLStringI()
29 HttpRetryException hre = new HttpRetryException(message[i], in test_ConstructorLStringI()
31 assertEquals(message[i], hre.getReason()); in test_ConstructorLStringI()
38 String [] message = {"Test message", "", "Message", "~!@#$% &*(", null}; in test_ConstructorLStringILString() local
43 for(int i = 0; i < message.length; i++) { in test_ConstructorLStringILString()
44 HttpRetryException hre = new HttpRetryException(message[i], in test_ConstructorLStringILString()
46 assertEquals(message[i], hre.getReason()); in test_ConstructorLStringILString()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThrowableTest.java24 String message = "Test message"; in test_ConstructorLStringLThrowable() local
26 Throwable thr = new Throwable(message, npe); in test_ConstructorLStringLThrowable()
27 assertEquals("message is incorrect.", message, thr.getMessage()); in test_ConstructorLStringLThrowable()
34 thr = new Throwable(message, null); in test_ConstructorLStringLThrowable()
35 assertEquals("message is incorrect.", message, thr.getMessage()); in test_ConstructorLStringLThrowable()
62 public TestThrowable(String message) { in TestThrowable() argument
63 super(message); in TestThrowable()
72 String message = "Test message"; in test_getStackTrace() local
74 Throwable thr = new Throwable(message, npe); in test_getStackTrace()
80 String message = "Test message"; in test_initCause() local
[all …]
DIllegalCallerExceptionTest.java39 String message = "message"; in constructor_String() local
41 IllegalCallerException exception = new IllegalCallerException(message); in constructor_String()
43 assertEquals(message, exception.getMessage()); in constructor_String()
49 String message = "message"; in constructor_String_Throwable() local
52 IllegalCallerException exception = new IllegalCallerException(message, cause); in constructor_String_Throwable()
54 assertEquals(message, exception.getMessage()); in constructor_String_Throwable()
/libcore/luni/src/main/java/org/xml/sax/
DSAXException.java56 public SAXException (String message) { in SAXException() argument
57 super(message); in SAXException()
86 public SAXException (String message, Exception e) in SAXException() argument
88 super(message); in SAXException()
104 String message = super.getMessage(); in getMessage() local
106 if (message == null && exception != null) { in getMessage()
109 return message; in getMessage()
DSAXParseException.java59 public SAXParseException (String message, Locator locator) { in SAXParseException() argument
60 super(message); in SAXParseException()
85 public SAXParseException (String message, Locator locator, in SAXParseException() argument
87 super(message, e); in SAXParseException()
118 public SAXParseException (String message, String publicId, String systemId, in SAXParseException() argument
121 super(message); in SAXParseException()
150 public SAXParseException (String message, String publicId, String systemId, in SAXParseException() argument
153 super(message, e); in SAXParseException()
/libcore/ojluni/src/test/java/util/HashMap/
DToArray.java52 …private static <T extends Comparable<T>> void checkToArray(String message, T[] expected, Collectio… in checkToArray() argument
57 checkToObjectArray(message, expected, collection, ignoreOrder); in checkToArray()
58 checkToTypedArray(message, expected, Arrays.copyOf(expected, 0), collection, ignoreOrder); in checkToArray()
59 checkToTypedArray(message, expected, expected.clone(), collection, ignoreOrder); in checkToArray()
63 checkToTypedArray(message, expected, biggerArray, collection, ignoreOrder); in checkToArray()
67 …private static <T extends Comparable<T>> void checkToTypedArray(String message, T[] expected, T[] … in checkToTypedArray() argument
71 throw new AssertionError(message + ": not the same array returned"); in checkToTypedArray()
74 throw new AssertionError(message + ": wrong class returned: " + res.getClass()); in checkToTypedArray()
77 …throw new AssertionError(message + ": length is smaller than expected: " + res.length + " < " + ex… in checkToTypedArray()
84 … throw new AssertionError(message + ": not equal: " + Arrays.toString(expected) + " != " + in checkToTypedArray()
[all …]
/libcore/ojluni/src/test/java/text/testlib/
DIntlTest.java158 protected void log(String message) { in log() argument
159 logImpl(message, false); in log()
162 protected void logln(String message) { in logln() argument
163 logImpl(message, true); in logln()
170 private void logImpl(String message, boolean newline) { in logImpl() argument
172 if (message != null) { in logImpl()
174 log.print(message); in logImpl()
182 protected void err(String message) { in err() argument
183 errImpl(message, false); in err()
186 protected void errln(String message) { in errln() argument
[all …]
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DLambdaConversionException.java44 public LambdaConversionException(String message) { in LambdaConversionException() argument
45 super(message); in LambdaConversionException()
53 public LambdaConversionException(String message, Throwable cause) { in LambdaConversionException() argument
54 super(message, cause); in LambdaConversionException()
73 …public LambdaConversionException(String message, Throwable cause, boolean enableSuppression, boole… in LambdaConversionException() argument
74 super(message, cause, enableSuppression, writableStackTrace); in LambdaConversionException()
/libcore/luni/src/test/java/libcore/java/nio/file/
DFileSystemAlreadyExistsExceptionTest.java26 String message = "message"; in test_constructor$String() local
27 FileSystemAlreadyExistsException exception = new FileSystemAlreadyExistsException(message); in test_constructor$String()
28 assertEquals(message, exception.getMessage()); in test_constructor$String()
30 message = null; in test_constructor$String()
31 exception = new FileSystemAlreadyExistsException(message); in test_constructor$String()
32 assertEquals(message, exception.getMessage()); in test_constructor$String()
DProviderNotFoundExceptionTest.java32 String message = "message"; in test_constructor$String() local
33 ProviderNotFoundException exception = new ProviderNotFoundException(message); in test_constructor$String()
34 assertEquals(message, exception.getMessage()); in test_constructor$String()
36 message = null; in test_constructor$String()
37 exception = new ProviderNotFoundException(message); in test_constructor$String()
38 assertEquals(message, exception.getMessage()); in test_constructor$String()
/libcore/ojluni/src/main/java/java/lang/
DRuntimeException.java62 public RuntimeException(String message) { in RuntimeException() argument
63 super(message); in RuntimeException()
80 public RuntimeException(String message, Throwable cause) { in RuntimeException() argument
81 super(message, cause); in RuntimeException()
115 protected RuntimeException(String message, Throwable cause, in RuntimeException() argument
118 super(message, cause, enableSuppression, writableStackTrace); in RuntimeException()
DError.java70 public Error(String message) { in Error() argument
71 super(message); in Error()
88 public Error(String message, Throwable cause) { in Error() argument
89 super(message, cause); in Error()
124 protected Error(String message, Throwable cause, in Error() argument
127 super(message, cause, enableSuppression, writableStackTrace); in Error()
DException.java66 public Exception(String message) { in Exception() argument
67 super(message); in Exception()
84 public Exception(String message, Throwable cause) { in Exception() argument
85 super(message, cause); in Exception()
120 protected Exception(String message, Throwable cause, in Exception() argument
123 super(message, cause, enableSuppression, writableStackTrace); in Exception()
/libcore/luni/src/test/java/libcore/java/io/
DObjectOutputStreamTest.java43 private String message; field in ObjectOutputStreamTest.CallsCloseInWriteObjectMethod
45 public CallsCloseInWriteObjectMethod(String message) { in CallsCloseInWriteObjectMethod() argument
46 this.message = message; in CallsCloseInWriteObjectMethod()
50 oos.writeObject(message); in writeObject()
55 message = (String) ois.readObject(); in readObject()
69 return message.equals(that.message); in equals()
74 return message.hashCode(); in hashCode()
/libcore/luni/src/test/java/libcore/xml/
DDeclarationTest.java82 String message = "This implementation doesn't parse the encoding from the XML declaration"; in testGetXmlEncoding() local
83 assertEquals(message, "ISO-8859-1", documentA.getXmlEncoding()); in testGetXmlEncoding()
84 assertEquals(message, "US-ASCII", documentB.getXmlEncoding()); in testGetXmlEncoding()
88 String message = "This implementation doesn't parse the version from the XML declaration"; in testGetXmlVersion() local
89 assertEquals(message, "1.0", documentA.getXmlVersion()); in testGetXmlVersion()
90 assertEquals(message, "1.1", documentB.getXmlVersion()); in testGetXmlVersion()
94 String message = "This implementation doesn't parse standalone from the XML declaration"; in testGetXmlStandalone() local
95 assertEquals(message, false, documentA.getXmlStandalone()); in testGetXmlStandalone()
96 assertEquals(message, true, documentB.getXmlStandalone()); in testGetXmlStandalone()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInvalidClassExceptionTest.java30 final String message = "A message"; in test_ConstructorLjava_lang_String() local
33 throw new InvalidClassException(message); in test_ConstructorLjava_lang_String()
38 assertTrue("Incorrect message read", e.getMessage().equals(message)); in test_ConstructorLjava_lang_String()
47 final String message = "A message"; in test_ConstructorLjava_lang_StringLjava_lang_String() local
51 throw new InvalidClassException(className, message); in test_ConstructorLjava_lang_StringLjava_lang_String()
59 && returnedMessage.indexOf(message) >= 0); in test_ConstructorLjava_lang_StringLjava_lang_String()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactoryTest.java76 … String message = "getInstance(" + (algorithm == null ? "null" : "\"" + algorithm + "\"") + ")"; in testGetInstanceString() local
80 checkException(message, e, exceptions[i]); in testGetInstanceString()
82 checkException(message, null, exceptions[i]); in testGetInstanceString()
120 String message = "getInstance(\"" + combination[0] + "\", \"" + combination[1] + "\")"; in testGetInstanceStringString() local
125 checkException(message, e, exceptions[i]); in testGetInstanceStringString()
127 checkException(message, null, exceptions[i]); in testGetInstanceStringString()
165 String message = "getInstance(" + in testGetInstanceStringProvider() local
173 checkException(message, e, exceptions[i]); in testGetInstanceStringProvider()
175 checkException(message, null, exceptions[i]); in testGetInstanceStringProvider()
216 String message = "generatePublic(" + in testGeneratePublic() local
[all …]
/libcore/ojluni/src/test/java/nio/channels/Channels/
DBasic.java39 static String message; field in Basic
49 message = "ascii data for a test"; in basicTest()
52 message = "\ucafe\ubabe\ucafe\ubabe\ucafe\ubabe"; in basicTest()
217 int messageSize = message.length() * ITERATIONS * 3 + 1; in readAndCheck()
226 int len = message.length(); in readAndCheck()
229 if (!segment.equals(message)) in readAndCheck()
238 fos.write(message.getBytes(encoding)); in writeOut()
248 os.write(message.getBytes(encoding)); in testNewOutputStream()
257 int messageSize = message.length() * ITERATIONS * 3 + 1; in testNewInputStream()
273 int len = message.length(); in testNewInputStream()
[all …]
/libcore/dalvik/src/main/java/dalvik/system/
DCloseGuard.java287 String message = "Explicit termination method '" + closer + "' not called"; in openWithCallSite() local
288 Throwable stack = new Throwable(message); in openWithCallSite()
372 void report(String message, Throwable allocationSite); in report() argument
379 default void report(String message) {} in report() argument
389 @Override public void report (String message, Throwable allocationSite) { in report() argument
390 System.logW(message, allocationSite); in report()
394 public void report(String message) { in report() argument
395 System.logW(message); in report()
/libcore/ojluni/src/main/java/java/time/
DDateTimeException.java88 public DateTimeException(String message) { in DateTimeException() argument
89 super(message); in DateTimeException()
98 public DateTimeException(String message, Throwable cause) { in DateTimeException() argument
99 super(message, cause); in DateTimeException()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRulesException.java84 public ZoneRulesException(String message) { in ZoneRulesException() argument
85 super(message); in ZoneRulesException()
94 public ZoneRulesException(String message, Throwable cause) { in ZoneRulesException() argument
95 super(message, cause); in ZoneRulesException()
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleBaseTest.java58 static void checkUOE(Object message, ThrowingRunnable r) { in checkUOE() argument
59 checkWithThrowable(UnsupportedOperationException.class, message, r); in checkUOE()
66 static void checkROBE(Object message, ThrowingRunnable r) { in checkROBE() argument
67 checkWithThrowable(ReadOnlyBufferException.class, message, r); in checkROBE()
74 static void checkIOOBE(Object message, ThrowingRunnable r) { in checkIOOBE() argument
75 checkWithThrowable(IndexOutOfBoundsException.class, message, r); in checkIOOBE()
82 static void checkASE(Object message, ThrowingRunnable r) { in checkASE() argument
83 checkWithThrowable(ArrayStoreException.class, message, r); in checkASE()
90 static void checkISE(Object message, ThrowingRunnable r) { in checkISE() argument
91 checkWithThrowable(IllegalStateException.class, message, r); in checkISE()
[all …]

12345678