21+ results for 'pythonexception' (0 ms)
Not the results you expected?
richcomparisons.hpp (https://bitbucket.org/pombredanne/nuitka.git) C++ Header · 341 lines
test_exceptionconverter.py (https://github.com/kumaryu/IronLanguages-main.git) Python · 142 lines
88 def test_CreateExceptionMapping_Py2CLR_NoMapping():
89 pyex1 = EC.CreatePythonException("PythonException1")
90 success = False
91 try:
114 def test_CreateExceptionMapping_CLR2Py_NoMapping():
115 pyex3 = EC.CreatePythonException("PythonException3")
116 success = False
117 try:
126 def test_CreateExceptionMapping_CLR2Py_WithMapping():
127 pyex4 = EC.CreatePythonException("PythonException4")
129 m = ExceptionMapping("PythonException4", IronPythonTest.CLRException4)
overview-tree.html (https://github.com/fnp/pylucene.git) HTML · 155 lines
PythonVM.java (https://github.com/fnp/pylucene.git) Java · 112 lines
sourcerer.vim (https://gitlab.com/valeth/vim-config) Vim Script · 216 lines
103 " python
104 hi pythonException guifg=#90b0d1 guibg=NONE gui=NONE
105 hi pythonExClass guifg=#996666 guibg=NONE gui=NONE
106 hi pythonDecorator guifg=#888555 guibg=NONE gui=NONE
184 hi pythonDecorator cterm=NONE ctermbg=NONE ctermfg=101
185 hi pythonExClass cterm=NONE ctermbg=NONE ctermfg=95
186 hi pythonException cterm=NONE ctermbg=NONE ctermfg=110
187 hi pythonFunc cterm=NONE ctermbg=NONE ctermfg=fg
188 hi pythonFuncParams cterm=NONE ctermbg=NONE ctermfg=fg
MantidAxes.cpp (https://github.com/mantidproject/mantid.git) C++ · 115 lines
sorcerer.vim (https://gitlab.com/ngurajeka/vim-config) Vim Script · 208 lines
97 " Python
98 hi pythonException guifg=#90b0d1 guibg=NONE gui=NONE
99 hi pythonExClass guifg=#996666 guibg=NONE gui=NONE
100 hi pythonDecorator guifg=#888555 guibg=NONE gui=NONE
181 hi pythonDecorator cterm=NONE ctermbg=NONE ctermfg=101
182 hi pythonExClass cterm=NONE ctermbg=NONE ctermfg=95
183 hi pythonException cterm=NONE ctermbg=NONE ctermfg=110
184 hi pythonFunc cterm=NONE ctermbg=NONE ctermfg=fg
185 hi pythonFuncParams cterm=NONE ctermbg=NONE ctermfg=fg
pylong.cs (https://github.com/bcline3078/PySharp.git) C# · 291 lines
62 obj = Runtime.PyLong_FromLong((long)value);
63 if (obj == IntPtr.Zero) {
64 throw new PythonException();
65 }
66 }
79 obj = Runtime.PyLong_FromLong((long)value);
80 if (obj == IntPtr.Zero) {
81 throw new PythonException();
82 }
83 }
95 obj = Runtime.PyLong_FromLongLong(value);
96 if (obj == IntPtr.Zero) {
97 throw new PythonException();
98 }
99 }
fruity.vim (https://github.com/Aishinjiaolo/dotvim.git) Vim Script · 147 lines
ClrType.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 338 lines
TypeCache.Generated.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 283 lines
BindingWarnings.cs (https://bitbucket.org/mdavid/dlr.git) C# · 95 lines
42 if (os.Length > 0) {
43 info = new WarningInfo(
44 PythonExceptions.DeprecationWarning,
45 String.Format("{0}.{1} has been obsoleted. {2}",
46 NameConverter.GetTypeName(method.DeclaringType),
57 if (py3kwarnings.Length > 0) {
58 info = new WarningInfo(
59 PythonExceptions.DeprecationWarning,
60 py3kwarnings[0].Message
61 );
70 if (method.Name == "Sleep") {
71 info = new WarningInfo(
72 PythonExceptions.RuntimeWarning,
73 "Calling Thread.Sleep on an STA thread doesn't pump messages. Use Thread.CurrentThread.Join instead.",
74 Expression.Equal(
slices.hpp (https://bitbucket.org/pombredanne/nuitka.git) C++ Header · 236 lines
variables_locals.hpp (https://bitbucket.org/pombredanne/nuitka.git) C++ Header · 212 lines
111 {
112 PyErr_Format( PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", Nuitka_String_AsString( this->var_name ) );
113 throw PythonException();
114 }
136 {
137 PyErr_Format( PyExc_UnboundLocalError, "local variable '%s' referenced before assignment", Nuitka_String_AsString( this->var_name ) );
138 throw PythonException();
139 }
140 }
174 if (unlikely( status == -1 ))
175 {
176 throw PythonException();
177 }
178 }
python.vim (https://bitbucket.org/glix/python.git) Vim Script · 148 lines
82 if exists("python_highlight_exceptions")
83 syn keyword pythonException ArithmeticError AssertionError AttributeError
84 syn keyword pythonException BaseException DeprecationWarning EOFError
85 syn keyword pythonException EnvironmentError Exception FloatingPointError
86 syn keyword pythonException FutureWarning GeneratorExit IOError ImportError
87 syn keyword pythonException ImportWarning IndentationError IndexError
88 syn keyword pythonException KeyError KeyboardInterrupt LookupError
89 syn keyword pythonException MemoryError NameError NotImplementedError
90 syn keyword pythonException OSError OverflowError PendingDeprecationWarning
91 syn keyword pythonException ReferenceError RuntimeError RuntimeWarning
92 syn keyword pythonException StandardError StopIteration SyntaxError
Exceptions.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 162 lines
27 private static void InitModuleExceptions(PythonContext context, PythonDictionary dict)
28 {
29 Warning = context.EnsureModuleException("sqlite.Warning", PythonExceptions.StandardError, dict, "Warning", "_sqlite3");
30 Error = context.EnsureModuleException("sqlite.Error", PythonExceptions.StandardError, dict, "Error", "_sqlite3");
RangeMarker.cpp (https://github.com/mantidproject/mantid.git) C++ · 183 lines
12 using Mantid::PythonInterface::callMethodNoCheck;
13 using Mantid::PythonInterface::GlobalInterpreterLock;
14 using Mantid::PythonInterface::PythonException;
15 using namespace MantidQt::Widgets::Common;
16 using namespace MantidQt::Widgets::MplCpp;
58 try {
59 callMethodNoCheck<void>(pyobj(), "remove");
60 } catch (PythonException const &) {
61 // Marker has already been removed
62 }