Lines Matching refs:exception
20 * Exception support code.
76 // Exception throwing support currently requires Tango, but there is no reason
78 static import tango.core.Exception;
95 auto exception = new object.Exception(tango.stdc.stringz.fromStringz(message).dup);
96 exception.next = SwigPendingException.retrieve();
97 SwigPendingException.set(exception);
101 auto exception = new tango.core.Exception.IllegalArgumentException(tango.stdc.stringz.fromStringz(message).dup);
102 exception.next = SwigPendingException.retrieve();
103 SwigPendingException.set(exception);
107 auto exception = new tango.core.Exception.IllegalElementException(tango.stdc.stringz.fromStringz(message).dup);
108 exception.next = SwigPendingException.retrieve();
109 SwigPendingException.set(exception);
113 auto exception = new tango.core.Exception.IOException(tango.stdc.stringz.fromStringz(message).dup);
114 exception.next = SwigPendingException.retrieve();
115 SwigPendingException.set(exception);
119 auto exception = new tango.core.Exception.NoSuchElementException(tango.stdc.stringz.fromStringz(message).dup);
120 exception.next = SwigPendingException.retrieve();
121 SwigPendingException.set(exception);
142 static void set(object.Exception e) {
144 throw new object.Exception("FATAL: An earlier pending exception from C/C++ code " ~
155 static object.Exception retrieve() {
156 object.Exception e = null;
170 // The pending exception counter is stored thread-global.
173 // The reference to the pending exception (if any) is stored thread-local.
174 alias tango.core.Thread.ThreadLocal!(object.Exception) ThreadLocalData;
187 // The D1/Tango version maps C++ exceptions to multiple exception types.
198 auto exception = new object.Exception(std.conv.to!string(message).idup);
199 exception.next = SwigPendingException.retrieve();
200 SwigPendingException.set(exception);
221 static void set(object.Exception e) {
223 throw new object.Exception("FATAL: An earlier pending exception from C/C++ code " ~
234 static object.Exception retrieve() {
235 object.Exception e = null;
249 // The pending exception counter is stored thread-global.
252 // The reference to the pending exception (if any) is stored thread-local.
253 static object.Exception m_sPendingException;