annotate java/src/java/lang/exceptions.d @ 6:f36c67707cb3

Removed import to tango.core.Exception
author Frank Benoit <benoit@tionex.de>
date Thu, 05 Mar 2009 00:18:47 +0100
parents 712ffca654f3
children 9b96950f2c3c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
1 module java.lang.exceptions;
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
2
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
3 import java.lang.util;
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
4
6
f36c67707cb3 Removed import to tango.core.Exception
Frank Benoit <benoit@tionex.de>
parents: 2
diff changeset
5 static import tango.core.Exception;
f36c67707cb3 Removed import to tango.core.Exception
Frank Benoit <benoit@tionex.de>
parents: 2
diff changeset
6 public alias tango.core.Exception.IOException IOException;
f36c67707cb3 Removed import to tango.core.Exception
Frank Benoit <benoit@tionex.de>
parents: 2
diff changeset
7
2
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
8 class ClassCastException : Exception {
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
9 this( String e = null ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
10 super(e);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
11 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
12 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
13
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
14 class IllegalStateException : Exception {
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
15 this( String e = null ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
16 super(e);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
17 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
18 this( Exception e ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
19 super(e.toString);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
20 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
21 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
22
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
23 class IndexOutOfBoundsException : Exception {
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
24 this( String e = null){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
25 super(e);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
26 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
27 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
28
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
29 class InterruptedException : Exception {
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
30 this( String e = null ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
31 super(e);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
32 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
33 this( Exception e ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
34 super(e.toString);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
35 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
36 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
37
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
38 class NullPointerException : Exception {
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
39 this( String e = null ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
40 super(e);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
41 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
42 this( Exception e ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
43 super(e.toString);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
44 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
45 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
46
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
47 class NumberFormatException : IllegalArgumentException {
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
48 this( String e ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
49 super(e);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
50 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
51 this( Exception e ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
52 super(e.toString);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
53 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
54 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
55
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
56 class RuntimeException : Exception {
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
57 this( char[] file, long line, char[] msg = null){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
58 super( msg, file, line );
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
59 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
60 this( String e = null){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
61 super(e);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
62 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
63 this( Exception e ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
64 super(e.toString);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
65 next = e;
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
66 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
67 public Exception getCause() {
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
68 return next;
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
69 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
70 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
71
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
72 class UnsupportedOperationException : RuntimeException {
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
73 this( String e = null){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
74 super(e);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
75 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
76 this( Exception e ){
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
77 super(e.toString);
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
78 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
79 }
712ffca654f3 Moved java classes to their correct location
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
80