Home
last modified time | relevance | path

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

12345

/libcore/luni/src/test/java/libcore/java/nio/file/
DFileSystemExceptionTest.java28 FileSystemException exception = new FileSystemException("file"); in test_constructor$String() local
29 assertEquals("file", exception.getFile()); in test_constructor$String()
30 assertNull(exception.getOtherFile()); in test_constructor$String()
31 assertNull(exception.getReason()); in test_constructor$String()
32 assertTrue(exception instanceof IOException); in test_constructor$String()
36 FileSystemException exception = new FileSystemException("file", "otherFile", "reason"); in test_constructor$String$String$String() local
37 assertEquals("file", exception.getFile()); in test_constructor$String$String$String()
38 assertEquals("otherFile", exception.getOtherFile()); in test_constructor$String$String$String()
39 assertEquals("reason", exception.getReason()); in test_constructor$String$String$String()
77 FileSystemException exception = (FileSystemException) SerializationTester in test_serialization() local
[all …]
DFileAlreadyExistsExceptionTest.java28 FileAlreadyExistsException exception = new FileAlreadyExistsException("file"); in test_constructor$String() local
29 assertEquals("file", exception.getFile()); in test_constructor$String()
30 assertNull(exception.getOtherFile()); in test_constructor$String()
31 assertNull(exception.getReason()); in test_constructor$String()
33 assertTrue(exception instanceof FileSystemException); in test_constructor$String()
37 FileAlreadyExistsException exception = new FileAlreadyExistsException("file", "otherFile", in test_constructor$String$String$String() local
39 assertEquals("file", exception.getFile()); in test_constructor$String$String$String()
40 assertEquals("otherFile", exception.getOtherFile()); in test_constructor$String$String$String()
41 assertEquals("reason", exception.getReason()); in test_constructor$String$String$String()
80 FileAlreadyExistsException exception = (FileAlreadyExistsException) SerializationTester in test_serialization() local
[all …]
DNotLinkExceptionTest.java28 NotLinkException exception = new NotLinkException("file"); in test_constructor$String() local
29 assertEquals("file", exception.getFile()); in test_constructor$String()
30 assertNull(exception.getOtherFile()); in test_constructor$String()
31 assertNull(exception.getReason()); in test_constructor$String()
33 assertTrue(exception instanceof FileSystemException); in test_constructor$String()
37 NotLinkException exception = new NotLinkException("file", "otherFile", "reason"); in test_constructor$String$String$String() local
38 assertEquals("file", exception.getFile()); in test_constructor$String$String$String()
39 assertEquals("otherFile", exception.getOtherFile()); in test_constructor$String$String$String()
40 assertEquals("reason", exception.getReason()); in test_constructor$String$String$String()
77 NotLinkException exception = (NotLinkException) SerializationTester.deserializeHex(hex); in test_serialization() local
[all …]
DNoSuchFileExceptionTest.java28 NoSuchFileException exception = new NoSuchFileException("file"); in test_constructor$String() local
29 assertEquals("file", exception.getFile()); in test_constructor$String()
30 assertNull(exception.getOtherFile()); in test_constructor$String()
31 assertNull(exception.getReason()); in test_constructor$String()
33 assertTrue(exception instanceof FileSystemException); in test_constructor$String()
37 NoSuchFileException exception = new NoSuchFileException("file", "otherFile", "reason"); in test_constructor$String$String$String() local
38 assertEquals("file", exception.getFile()); in test_constructor$String$String$String()
39 assertEquals("otherFile", exception.getOtherFile()); in test_constructor$String$String$String()
40 assertEquals("reason", exception.getReason()); in test_constructor$String$String$String()
78 NoSuchFileException exception = (NoSuchFileException) SerializationTester in test_serialization() local
[all …]
DAccessDeniedExceptionTest.java29 AccessDeniedException exception = new AccessDeniedException("file"); in test_constructor$String() local
30 assertEquals("file", exception.getFile()); in test_constructor$String()
31 assertNull(exception.getOtherFile()); in test_constructor$String()
32 assertNull(exception.getReason()); in test_constructor$String()
34 assertTrue(exception instanceof FileSystemException); in test_constructor$String()
38 AccessDeniedException exception = new AccessDeniedException("file", "otherFile", "reason"); in test_constructor$String$String$String() local
39 assertEquals("file", exception.getFile()); in test_constructor$String$String$String()
40 assertEquals("otherFile", exception.getOtherFile()); in test_constructor$String$String$String()
41 assertEquals("reason", exception.getReason()); in test_constructor$String$String$String()
79 AccessDeniedException exception = (AccessDeniedException) in test_serialization() local
[all …]
DNotDirectoryExceptionTest.java28 NotDirectoryException exception = new NotDirectoryException("file"); in test_constructor$String() local
29 assertEquals("file", exception.getFile()); in test_constructor$String()
30 assertNull(exception.getOtherFile()); in test_constructor$String()
31 assertNull(exception.getReason()); in test_constructor$String()
33 assertTrue(exception instanceof FileSystemException); in test_constructor$String()
70 NotDirectoryException exception = (NotDirectoryException) SerializationTester in test_serialization() local
73 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
75 assertEquals("file", exception.getFile()); in test_serialization()
76 assertNull(exception.getOtherFile()); in test_serialization()
77 assertNull(exception.getReason()); in test_serialization()
DDirectoryNotEmptyExceptionTest.java29 DirectoryNotEmptyException exception = new DirectoryNotEmptyException("file"); in test_constructor$String() local
30 assertEquals("file", exception.getFile()); in test_constructor$String()
31 assertNull(exception.getOtherFile()); in test_constructor$String()
32 assertNull(exception.getReason()); in test_constructor$String()
34 assertTrue(exception instanceof FileSystemException); in test_constructor$String()
71 DirectoryNotEmptyException exception = (DirectoryNotEmptyException) SerializationTester in test_serialization() local
74 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
76 assertEquals("file", exception.getFile()); in test_serialization()
77 assertNull(exception.getOtherFile()); in test_serialization()
78 assertNull(exception.getReason()); in test_serialization()
DAtomicMoveNotSupportedExceptionTest.java29 AtomicMoveNotSupportedException exception = new AtomicMoveNotSupportedException("source", in test_constructor$String$String$String() local
31 assertEquals("source", exception.getFile()); in test_constructor$String$String$String()
32 assertEquals("target", exception.getOtherFile()); in test_constructor$String$String$String()
33 assertEquals("reason", exception.getReason()); in test_constructor$String$String$String()
34 assertTrue(exception instanceof FileSystemException); in test_constructor$String$String$String()
73 AtomicMoveNotSupportedException exception = (AtomicMoveNotSupportedException) in test_serialization() local
76 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
78 assertEquals("source", exception.getFile()); in test_serialization()
79 assertEquals("target", exception.getOtherFile()); in test_serialization()
80 assertEquals("reason", exception.getReason()); in test_serialization()
DInvalidPathExceptionTest.java30 InvalidPathException exception = new InvalidPathException(input, reason, index); in test_Constructor$String$String$Int() local
31 assertEquals(index, exception.getIndex()); in test_Constructor$String$String$Int()
32 assertEquals(reason, exception.getReason()); in test_Constructor$String$String$Int()
33 assertEquals(input, exception.getInput()); in test_Constructor$String$String$Int()
37 exception = new InvalidPathException(input, reason, index); in test_Constructor$String$String$Int()
38 assertEquals(index, exception.getIndex()); in test_Constructor$String$String$Int()
39 assertEquals(reason, exception.getReason()); in test_Constructor$String$String$Int()
40 assertEquals(input, exception.getInput()); in test_Constructor$String$String$Int()
82 InvalidPathException exception = new InvalidPathException(input, reason); in test_Constructor$String$String() local
83 assertEquals(-1, exception.getIndex()); in test_Constructor$String$String()
[all …]
DFileSystemLoopExceptionTest.java29 FileSystemLoopException exception = new FileSystemLoopException("file"); in test_constructor$String() local
30 assertEquals("file", exception.getFile()); in test_constructor$String()
31 assertTrue(exception instanceof FileSystemException); in test_constructor$String()
68 FileSystemLoopException exception = (FileSystemLoopException) SerializationTester in test_serialization() local
71 String hex1 = SerializationTester.serializeHex(exception).toString(); in test_serialization()
73 assertEquals("file", exception.getFile()); in test_serialization()
DProviderMismatchExceptionTest.java26 ProviderMismatchException exception = new ProviderMismatchException(testString); in test_constructor$String() local
27 assertEquals(testString, exception.getMessage()); in test_constructor$String()
31 ProviderMismatchException exception = new ProviderMismatchException(); in test_constructor() local
32 assertEquals(null, exception.getMessage()); in test_constructor()
33 assertTrue(exception instanceof IllegalArgumentException); in test_constructor()
DFileSystemNotFoundExceptionTest.java26 FileSystemNotFoundException exception = new FileSystemNotFoundException(); in test_constructor_empty() local
27 assertEquals(null, exception.getMessage()); in test_constructor_empty()
32 FileSystemNotFoundException exception = new FileSystemNotFoundException(message); in test_constructor$String() local
33 assertEquals(message, exception.getMessage()); in test_constructor$String()
DFileSystemAlreadyExistsExceptionTest.java27 FileSystemAlreadyExistsException exception = new FileSystemAlreadyExistsException(message); in test_constructor$String() local
28 assertEquals(message, exception.getMessage()); in test_constructor$String()
31 exception = new FileSystemAlreadyExistsException(message); in test_constructor$String()
32 assertEquals(message, exception.getMessage()); in test_constructor$String()
/libcore/luni/src/main/java/org/xml/sax/
DSAXException.java47 this.exception = null; in SAXException()
58 this.exception = null; in SAXException()
73 this.exception = e; in SAXException()
89 this.exception = e; in SAXException()
106 if (message == null && exception != null) { in getMessage()
107 return exception.getMessage(); in getMessage()
121 return exception; in getException()
132 if (exception != null) { in toString()
133 return exception.toString(); in toString()
150 private Exception exception; field in SAXException
/libcore/ojluni/src/main/java/java/security/
DPrivilegedActionException.java61 private Exception exception; field in PrivilegedActionException
69 public PrivilegedActionException(Exception exception) { in PrivilegedActionException() argument
71 this.exception = exception; in PrivilegedActionException()
90 return exception; in getException()
102 return exception; in getCause()
107 return (exception != null) ? (s + ": " + exception.toString()) : s; in toString()
/libcore/luni/src/main/java/javax/xml/parsers/
DFactoryConfigurationError.java37 private Exception exception; field in FactoryConfigurationError
45 this.exception = null; in FactoryConfigurationError()
57 this.exception = null; in FactoryConfigurationError()
71 this.exception = e; in FactoryConfigurationError()
85 this.exception = e; in FactoryConfigurationError()
102 if (message == null && exception != null) { in getMessage()
103 return exception.getMessage(); in getMessage()
117 return exception; in getException()
/libcore/luni/src/main/java/javax/xml/transform/
DTransformerFactoryConfigurationError.java34 private Exception exception; field in TransformerFactoryConfigurationError
41 this.exception = null; in TransformerFactoryConfigurationError()
54 this.exception = null; in TransformerFactoryConfigurationError()
68 this.exception = e; in TransformerFactoryConfigurationError()
83 this.exception = e; in TransformerFactoryConfigurationError()
97 if ((message == null) && (exception != null)) { in getMessage()
98 return exception.getMessage(); in getMessage()
111 return exception; in getException()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DIntegerTest.java94 boolean exception = false; in test_decodeLjava_lang_String2()
99 exception = true; in test_decodeLjava_lang_String2()
102 exception); in test_decodeLjava_lang_String2()
104 exception = false; in test_decodeLjava_lang_String2()
109 exception = true; in test_decodeLjava_lang_String2()
111 assertTrue("Failed to throw exception for MAX_VALUE + 1", exception); in test_decodeLjava_lang_String2()
113 exception = false; in test_decodeLjava_lang_String2()
118 exception = true; in test_decodeLjava_lang_String2()
120 assertTrue("Failed to throw exception for MIN_VALUE - 1", exception); in test_decodeLjava_lang_String2()
122 exception = false; in test_decodeLjava_lang_String2()
[all …]
DLongTest.java95 boolean exception = false; in test_decodeLjava_lang_String2()
101 exception = true; in test_decodeLjava_lang_String2()
103 assertTrue("Failed to throw exception for value > ilong", exception); in test_decodeLjava_lang_String2()
105 exception = false; in test_decodeLjava_lang_String2()
110 exception = true; in test_decodeLjava_lang_String2()
112 assertTrue("Failed to throw exception for MAX_VALUE + 1", exception); in test_decodeLjava_lang_String2()
114 exception = false; in test_decodeLjava_lang_String2()
119 exception = true; in test_decodeLjava_lang_String2()
121 assertTrue("Failed to throw exception for MIN_VALUE - 1", exception); in test_decodeLjava_lang_String2()
123 exception = false; in test_decodeLjava_lang_String2()
[all …]
DShortTest.java82 boolean exception = false; in test_decodeLjava_lang_String2()
87 exception = true; in test_decodeLjava_lang_String2()
90 exception); in test_decodeLjava_lang_String2()
92 exception = false; in test_decodeLjava_lang_String2()
97 exception = true; in test_decodeLjava_lang_String2()
99 assertTrue("Failed to throw exception for MAX_VALUE + 1", exception); in test_decodeLjava_lang_String2()
101 exception = false; in test_decodeLjava_lang_String2()
106 exception = true; in test_decodeLjava_lang_String2()
108 assertTrue("Failed to throw exception for MIN_VALUE - 1", exception); in test_decodeLjava_lang_String2()
110 exception = false; in test_decodeLjava_lang_String2()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DInputMismatchExceptionTest.java35 InputMismatchException exception = new InputMismatchException(); in test_Constructor() local
36 assertNotNull(exception); in test_Constructor()
37 assertTrue(exception instanceof NoSuchElementException); in test_Constructor()
38 assertTrue(exception instanceof Serializable); in test_Constructor()
45 InputMismatchException exception = new InputMismatchException( in test_ConstructorLjava_lang_String() local
47 assertNotNull(exception); in test_ConstructorLjava_lang_String()
48 assertEquals(ERROR_MESSAGE, exception.getMessage()); in test_ConstructorLjava_lang_String()
/libcore/ojluni/src/main/java/javax/sql/
DStatementEvent.java45 private SQLException exception; field in StatementEvent
67 this.exception = null; in StatementEvent()
86 SQLException exception) { in StatementEvent() argument
91 this.exception = exception; in StatementEvent()
115 return this.exception; in getSQLException()
/libcore/luni/src/test/java/libcore/java/io/
DOldAndroidPipedStreamTest.java32 exception = e; in run()
36 Throwable exception; field in OldAndroidPipedStreamTest.TestThread
100 if (writer.exception != null) { in testA()
101 throw new Exception(writer.exception); in testA()
103 if (reader.exception != null) { in testA()
104 throw new Exception(reader.exception); in testA()
183 if (reader.exception != null) { in testB()
184 throw new Exception(reader.exception); in testB()
186 if (writer.exception != null) { in testB()
187 throw new Exception(writer.exception); in testB()
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DCertificateRevocationExceptionTest.java114 CertificateRevokedException exception = getTestException();
116 Date firstDate = exception.getRevocationDate();
117 assertNotSame(firstDate, exception.getRevocationDate());
120 assertTrue(firstDate.compareTo(exception.getRevocationDate()) > 0);
124 CertificateRevokedException exception = getTestException();
126 Date firstDate = exception.getInvalidityDate();
127 assertNotSame(firstDate, exception.getInvalidityDate());
130 assertTrue(firstDate.compareTo(exception.getInvalidityDate()) > 0);
134 CertificateRevokedException exception = getTestException();
135 assertEquals(new X500Principal("CN=test1"), exception.getAuthorityName());
/libcore/ojluni/src/main/java/java/lang/
DExceptionInInitializerError.java58 private Throwable exception; field in ExceptionInInitializerError
80 this.exception = thrown; in ExceptionInInitializerError()
112 return exception; in getException()
124 return exception; in getCause()

12345