title: Raising an exception while using numba
body: <p>Following up from <a href="https://stackoverflow.com/questions/25806875/activating-numpy-seterr-catching-overflow-underflows-zero-division-while-using">here</a>, I keep getting overflows. So I'm trying to raise an exception so that I know exactly what's going wrong where. </p>
  
  <p>I've got something like this:</p>
  
  <pre><code>@jit
  def train_function(X, y, H):
       np.seterr(over="raise", under="raise", invalid="raise")
       # do some stuff, start a double loop, and then do:
       try: 
              z[i,j] = math.exp(-beta[j,i])
       except OverflowError:
              print "Calculation failed! z[i,j] = math.exp(-beta[j,i]), j: " + str(j) + ", i: " +str(i) + ", b: " + str(beta[j,i]) + ", omb: " + str(oneminusbeta[j,i])
              raise    
  
  
  class MyClass(object):
       # init and other methods
       def train(self, X, y, H):
            train_function(X, y, H)
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\work_asaaki\code\gbc_classifier_train_7.py", line 55, in &lt;module&gt;
      gentlebooster.train(X_train, y_train, boosting_rounds)
    File "C:\work_asaaki\code\gentleboost_c_class_jit_v7_nolimit.py", line 297, in train
      self.g_per_round, self.g = train_function(X, y, H)  
    File "C:\Anaconda\lib\site-packages\numba\dispatcher.py", line 152, in _compile_for_args
      return self.jit(sig)
    File "C:\Anaconda\lib\site-packages\numba\dispatcher.py", line 143, in jit
      return self.compile(sig, **kws)
    File "C:\Anaconda\lib\site-packages\numba\dispatcher.py", line 131, in compile
      flags=flags, locals=locs)
    File "C:\Anaconda\lib\site-packages\numba\compiler.py", line 103, in compile_extra
      bc = bytecode.ByteCode(func=func)
    File "C:\Anaconda\lib\site-packages\numba\bytecode.py", line 305, in __init__
      table = utils.SortedMap(ByteCodeIter(code))
    File "C:\Anaconda\lib\site-packages\numba\utils.py", line 70, in __init__
      for i, (k, v) in enumerate(sorted(seq)):
    File "C:\Anaconda\lib\site-packages\numba\bytecode.py", line 219, in next
      raise NotImplementedError(ts % tv)
  NotImplementedError: offset=742 opcode=0x79 opname=SETUP_EXCEPT
  </code></pre>
  
  <p>Can't I raise exception while I'm using numba? I'm using Anaconda 2.0.1 with Numba 0.13.x and Numpy 1.8.x on a 64-bit machine.</p>