Thanks!

Just to clarify for others: 
    
    
    type
      MyCustomError* = object of Exception
    
    ...
    proc doStuff(): int =
      raise newException(MyCustomError, "didn't do stuff")
    

Reply via email to