21+ results for 'pythonexception' (0 ms)

Not the results you expected?

richcomparisons.hpp (https://bitbucket.org/pombredanne/nuitka.git) C++ Header · 341 lines

27 if (unlikely( result == NULL ))

28 {

29 throw PythonException();

30 }

31

41 if (unlikely( result == NULL ))

42 {

43 throw PythonException();

44 }

45

55 if (unlikely( result == NULL ))

56 {

57 throw PythonException();

58 }

59

test_exceptionconverter.py (https://github.com/kumaryu/IronLanguages-main.git) Python · 142 lines

87

88 def test_CreateExceptionMapping_Py2CLR_NoMapping():

89 pyex1 = EC.CreatePythonException("PythonException1")

90 success = False

91 try:

113

114 def test_CreateExceptionMapping_CLR2Py_NoMapping():

115 pyex3 = EC.CreatePythonException("PythonException3")

116 success = False

117 try:

125

126 def test_CreateExceptionMapping_CLR2Py_WithMapping():

127 pyex4 = EC.CreatePythonException("PythonException4")

128

129 m = ExceptionMapping("PythonException4", IronPythonTest.CLRException4)

overview-tree.html (https://github.com/fnp/pylucene.git) HTML · 155 lines

94 <LI TYPE="circle">java.lang.Exception<UL>

95 <LI TYPE="circle">java.lang.RuntimeException<UL>

96 <LI TYPE="circle">org.apache.jcc.<A HREF="org/apache/jcc/PythonException.html" title="class in org.apache.jcc"><B>PythonException</B></A></UL>

97 </UL>

98 </UL>

PythonVM.java (https://github.com/fnp/pylucene.git) Java · 112 lines

88 */

89 public native Object instantiate(String moduleName, String className)

90 throws PythonException;

91

92 /**

sourcerer.vim (https://gitlab.com/valeth/vim-config) Vim Script · 216 lines

102

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

98 removed = pyobj().attr("remove_workspace_artists")(Python::NewRef(MatrixWorkpaceToPython()(ws)));

99 } catch (Python::ErrorAlreadySet &) {

100 throw Mantid::PythonInterface::PythonException();

101 }

102 return removed;

sorcerer.vim (https://gitlab.com/ngurajeka/vim-config) Vim Script · 208 lines

96

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

59 hi pythonBuiltinObj guifg=#2b6ba2 gui=bold

60 hi pythonBuiltinFunc guifg=#2b6ba2 gui=bold

61 hi pythonException guifg=#ee0000 gui=bold

62 hi pythonExClass guifg=#66cd66 gui=bold

63 hi pythonSpaceError guibg=#270000

ClrType.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 338 lines

32 ///--Positive Scenarios--

33 #region sanity derived

34 public class SanityDerived : PythonExceptions.BaseException {

35 public SanityDerived(PythonType pt) : base(pt) { }

36 }

TypeCache.Generated.cs (https://github.com/kumaryu/IronLanguages-main.git) C# · 283 lines

264 public static PythonType BaseException {

265 get {

266 if (baseException == null) baseException = DynamicHelpers.GetPythonTypeFromType(typeof(PythonExceptions.BaseException));

267 return baseException;

268 }

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

65 if (unlikely( result == NULL ))

66 {

67 throw PythonException();

68 }

69

76 if (unlikely( slice == NULL ))

77 {

78 throw PythonException();

79 }

80

84 if (unlikely( result == NULL ))

85 {

86 throw PythonException();

87 }

88

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 }

115

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

81

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 }

ObjectFactory.cpp (https://bitbucket.org/cleto/zeroc-ice-package.git) C++ · 196 lines

149 ex.kindOfObject = "object factory";

150 ex.id = id;

151 setPythonException(ex);

152 return false;

153 }

170 ex.kindOfObject = "object factory";

171 ex.id = id;

172 setPythonException(ex);

173 return false;

174 }

gc.cs (https://bitbucket.org/mdavid/dlr.git) C# · 110 lines

50

51 public static void disable(CodeContext/*!*/ context) {

52 PythonOps.Warn(context, PythonExceptions.RuntimeWarning, "IronPython has no support for disabling the GC");

53 }

54

variables_shared.hpp (https://bitbucket.org/pombredanne/nuitka.git) C++ Header · 321 lines

91 {

92 PyErr_Format( PyExc_NameError, "free variable '%s' referenced before assignment in enclosing scope", Nuitka_String_AsString( this->var_name ) );

93 throw PythonException();

94 }

95

192 );

193

194 throw PythonException();

195 }

196

203 );

204

205 throw PythonException();

206 }

207

Plot.cpp (https://github.com/mantidproject/mantid.git) C++ · 161 lines

110 return functionsModule().attr("plot")(*args, **kwargs);

111 } catch (Python::ErrorAlreadySet &) {

112 throw PythonException();

113 }

114 }

155 return functionsModule().attr("pcolormesh")(*args, **kwargs);

156 } catch (Python::ErrorAlreadySet &) {

157 throw PythonException();

158 }

159 }