Home
last modified time | relevance | path

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

1234567

/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.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/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/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/main/java/java/lang/
DRuntimeException.java61 public RuntimeException(String message) { in RuntimeException() argument
62 super(message); in RuntimeException()
79 public RuntimeException(String message, Throwable cause) { in RuntimeException() argument
80 super(message, cause); in RuntimeException()
114 protected RuntimeException(String message, Throwable cause, in RuntimeException() argument
117 super(message, cause, enableSuppression, writableStackTrace); in RuntimeException()
DException.java65 public Exception(String message) { in Exception() argument
66 super(message); in Exception()
83 public Exception(String message, Throwable cause) { in Exception() argument
84 super(message, cause); in Exception()
119 protected Exception(String message, Throwable cause, in Exception() argument
122 super(message, cause, enableSuppression, writableStackTrace); in Exception()
DError.java69 public Error(String message) { in Error() argument
70 super(message); in Error()
87 public Error(String message, Throwable cause) { in Error() argument
88 super(message, cause); in Error()
123 protected Error(String message, Throwable cause, in Error() argument
126 super(message, cause, enableSuppression, writableStackTrace); in Error()
DVirtualMachineError.java52 public VirtualMachineError(String message) { in VirtualMachineError() argument
53 super(message); in VirtualMachineError()
70 public VirtualMachineError(String message, Throwable cause) { in VirtualMachineError() argument
71 super(message, cause); in VirtualMachineError()
DUnsupportedOperationException.java51 public UnsupportedOperationException(String message) { in UnsupportedOperationException() argument
52 super(message); in UnsupportedOperationException()
71 public UnsupportedOperationException(String message, Throwable cause) { in UnsupportedOperationException() argument
72 super(message, cause); in UnsupportedOperationException()
/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 …]
/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.java26 String message = "message"; in test_constructor$String() local
27 ProviderNotFoundException exception = new ProviderNotFoundException(message); in test_constructor$String()
28 assertEquals(message, exception.getMessage()); in test_constructor$String()
30 message = null; in test_constructor$String()
31 exception = new ProviderNotFoundException(message); in test_constructor$String()
32 assertEquals(message, exception.getMessage()); in test_constructor$String()
/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.java73 … String message = "getInstance(" + (algorithm == null ? "null" : "\"" + algorithm + "\"") + ")"; in testGetInstanceString() local
77 checkException(message, e, exceptions[i]); in testGetInstanceString()
79 checkException(message, null, exceptions[i]); in testGetInstanceString()
116 String message = "getInstance(\"" + combination[0] + "\", \"" + combination[1] + "\")"; in testGetInstanceStringString() local
121 checkException(message, e, exceptions[i]); in testGetInstanceStringString()
123 checkException(message, null, exceptions[i]); in testGetInstanceStringString()
161 String message = "getInstance(" + in testGetInstanceStringProvider() local
169 checkException(message, e, exceptions[i]); in testGetInstanceStringProvider()
171 checkException(message, null, exceptions[i]); in testGetInstanceStringProvider()
212 String message = "generatePublic(" + in testGeneratePublic() local
[all …]
/libcore/ojluni/src/main/java/java/time/
DDateTimeException.java87 public DateTimeException(String message) { in DateTimeException() argument
88 super(message); in DateTimeException()
97 public DateTimeException(String message, Throwable cause) { in DateTimeException() argument
98 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/main/java/java/time/temporal/
DUnsupportedTemporalTypeException.java87 public UnsupportedTemporalTypeException(String message) { in UnsupportedTemporalTypeException() argument
88 super(message); in UnsupportedTemporalTypeException()
97 public UnsupportedTemporalTypeException(String message, Throwable cause) { in UnsupportedTemporalTypeException() argument
98 super(message, cause); in UnsupportedTemporalTypeException()
/libcore/ojluni/src/main/java/java/lang/annotation/
DAnnotationFormatError.java48 public AnnotationFormatError(String message) { in AnnotationFormatError() argument
49 super(message); in AnnotationFormatError()
62 public AnnotationFormatError(String message, Throwable cause) { in AnnotationFormatError() argument
63 super(message, cause); in AnnotationFormatError()
/libcore/ojluni/src/main/java/java/io/
DIOException.java57 public IOException(String message) { in IOException() argument
58 super(message); in IOException()
80 public IOException(String message, Throwable cause) { in IOException() argument
81 super(message, cause); in IOException()
/libcore/ojluni/src/main/java/java/util/
DConcurrentModificationException.java86 public ConcurrentModificationException(String message) { in ConcurrentModificationException() argument
87 super(message); in ConcurrentModificationException()
121 public ConcurrentModificationException(String message, Throwable cause) { in ConcurrentModificationException() argument
122 super(message, cause); in ConcurrentModificationException()

1234567