summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSException.java
blob: 87a451abc1e9e3e7d29e3a8dffdc1b73c1871d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package org.eclipse.swt.internal.cocoa;

public class NSException extends NSObject {

public NSException() {
	super();
}

public NSException(int id) {
	super(id);
}

public NSArray callStackReturnAddresses() {
	int result = OS.objc_msgSend(this.id, OS.sel_callStackReturnAddresses);
	return result != 0 ? new NSArray(result) : null;
}

public static NSException exceptionWithName(NSString name, NSString reason, NSDictionary userInfo) {
	int result = OS.objc_msgSend(OS.class_NSException, OS.sel_exceptionWithName_1reason_1userInfo_1, name != null ? name.id : 0, reason != null ? reason.id : 0, userInfo != null ? userInfo.id : 0);
	return result != 0 ? new NSException(result) : null;
}

public id initWithName(NSString aName, NSString aReason, NSDictionary aUserInfo) {
	int result = OS.objc_msgSend(this.id, OS.sel_initWithName_1reason_1userInfo_1, aName != null ? aName.id : 0, aReason != null ? aReason.id : 0, aUserInfo != null ? aUserInfo.id : 0);
	return result != 0 ? new id(result) : null;
}

public NSString name() {
	int result = OS.objc_msgSend(this.id, OS.sel_name);
	return result != 0 ? new NSString(result) : null;
}

public void raise() {
	OS.objc_msgSend(this.id, OS.sel_raise);
}

public static void static_raise_format_(NSString name, NSString format) {
	OS.objc_msgSend(OS.class_NSException, OS.sel_raise_1format_1, name != null ? name.id : 0, format != null ? format.id : 0);
}

public static void static_raise_format_arguments_(NSString name, NSString format, int argList) {
	OS.objc_msgSend(OS.class_NSException, OS.sel_raise_1format_1arguments_1, name != null ? name.id : 0, format != null ? format.id : 0, argList);
}

public NSString reason() {
	int result = OS.objc_msgSend(this.id, OS.sel_reason);
	return result != 0 ? new NSString(result) : null;
}

public NSDictionary userInfo() {
	int result = OS.objc_msgSend(this.id, OS.sel_userInfo);
	return result != 0 ? new NSDictionary(result) : null;
}

}