Searched refs:StringIndexOutOfBoundsException (Results 1 - 11 of 11) sorted by relevance

/libcore/luni/src/main/java/java/lang/
H A DStringIndexOutOfBoundsException.java24 public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException { class in inherits:IndexOutOfBoundsException
29 * Constructs a new {@code StringIndexOutOfBoundsException} that includes
32 public StringIndexOutOfBoundsException() { method in class:StringIndexOutOfBoundsException
36 * Constructs a new {@code StringIndexOutOfBoundsException} with the current
43 public StringIndexOutOfBoundsException(int index) { method in class:StringIndexOutOfBoundsException
48 * Constructs a new {@code StringIndexOutOfBoundsException} with the current
54 public StringIndexOutOfBoundsException(String detailMessage) { method in class:StringIndexOutOfBoundsException
62 public StringIndexOutOfBoundsException(String s, int index) { method in class:StringIndexOutOfBoundsException
70 public StringIndexOutOfBoundsException(int sourceLength, int index) { method in class:StringIndexOutOfBoundsException
78 public StringIndexOutOfBoundsException(Strin method in class:StringIndexOutOfBoundsException
86 public StringIndexOutOfBoundsException(int sourceLength, int offset, method in class:StringIndexOutOfBoundsException
[all...]
H A DAbstractStringBuilder.java211 private StringIndexOutOfBoundsException indexAndLength(int index) {
212 throw new StringIndexOutOfBoundsException(count, index);
215 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) {
216 throw new StringIndexOutOfBoundsException(count, start, end - start);
334 throw new StringIndexOutOfBoundsException("this.length=" + count
561 throw new StringIndexOutOfBoundsException("length < 0: " + length);
587 * @throws StringIndexOutOfBoundsException
612 * @throws StringIndexOutOfBoundsException
H A DString.java578 private StringIndexOutOfBoundsException indexAndLength(int index) {
579 throw new StringIndexOutOfBoundsException(this, index);
582 private StringIndexOutOfBoundsException startEndAndLength(int start, int end) {
583 throw new StringIndexOutOfBoundsException(this, start, end - start);
586 private StringIndexOutOfBoundsException failedBoundsCheck(int arrayLength, int offset, int count) {
587 throw new StringIndexOutOfBoundsException(arrayLength, offset, count);
891 // We throw StringIndexOutOfBoundsException rather than System.arraycopy's AIOOBE.
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldStringBufferTest.java29 fail("StringIndexOutOfBoundsException was not thrown.");
30 } catch(StringIndexOutOfBoundsException sioobe) {
36 fail("StringIndexOutOfBoundsException was not thrown.");
37 } catch(StringIndexOutOfBoundsException sioobe) {
96 fail("StringIndexOutOfBoundsException is not thrown.");
97 } catch(StringIndexOutOfBoundsException sioobe) {
103 fail("StringIndexOutOfBoundsException is not thrown.");
104 } catch(StringIndexOutOfBoundsException sioobe) {
112 fail("StringIndexOutOfBoundsException is not thrown.");
113 } catch(StringIndexOutOfBoundsException sioob
[all...]
H A DStringIndexOutOfBoundsExceptionTest.java26 } catch (StringIndexOutOfBoundsException ex) {
33 } catch (StringIndexOutOfBoundsException ex) {
42 } catch (StringIndexOutOfBoundsException ex) {
/libcore/luni/src/main/java/java/io/
H A DWriter.java162 throw new StringIndexOutOfBoundsException(str, offset, count);
H A DOutputStreamWriter.java314 throw new StringIndexOutOfBoundsException(str, offset, count);
320 throw new StringIndexOutOfBoundsException(str, offset, count);
H A DCharArrayWriter.java197 * @throws StringIndexOutOfBoundsException
208 throw new StringIndexOutOfBoundsException(str, offset, count);
H A DBufferedWriter.java271 throw new StringIndexOutOfBoundsException(str, offset, count);
/libcore/luni/src/test/java/libcore/java/io/
H A DOldBufferedWriterTest.java273 fail("Test 2: StringIndexOutOfBoundsException expected.");
274 } catch (StringIndexOutOfBoundsException e) {
280 fail("Test 3: StringIndexOutOfBoundsException expected.");
281 } catch (StringIndexOutOfBoundsException e) {
/libcore/luni/src/main/java/java/net/
H A DURLStreamHandler.java90 throw new StringIndexOutOfBoundsException(spec, start, end - start);

Completed in 230 milliseconds