summary refs log tree commit diff stats
path: root/tests/exception/tunhandledexc.nim
blob: f24881aeff1a0931c9abdb158f9b80e87ef90b2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
discard """
  file: "tunhandledexc.nim"
  outputsub: "Error: unhandled exception: bla [ESomeOtherErr]"
  exitcode: "1"
"""
type
  ESomething = object of E_Base
  ESomeOtherErr = object of E_Base

proc genErrors(s: string) =
  if s == "error!":
    raise newException(ESomething, "Test")
  else:
    raise newException(EsomeotherErr, "bla")

when True:
  try:
    genErrors("errssor!")
  except ESomething:
    echo("Error happened")
  
al other clean-ups and fixes 2010-09-16: Version 1.2.1 * Fixed yy/pp bug when yanking multiple directories 2010-09-13: Version 1.2.0 * !!! Changed the default configuration directory to ~/.config/ranger !!! * Removed "Console Modes", each old mode is now a simple command * Disabled file previews by default if ranger is used by root * Allow to jump to specific help sections by typing two numbers, e.g. 13? * Added keys: da, dr, ya, yr for adding and removing files from copy buffer * Added keys: gl and gL to resolve links, see 11? * Added key: pL to create a relative symlink * Added %<LETTER> and %<N><LETTER> macros for the console, see 33? * Fixed ansi codes for colors in the pager * Use the file ~/.mime.types for mime type detection * Several clean-ups and fixes 2010-07-17: Version 1.1.2 * Fix crash when using scrollwheel to scroll down in some cases * The command "ranger dir1 dir2 ..." opens multiple directories in tabs * Removed pydoc html documentation by default, re-create it with "make doc" * Minor fixes 2010-06-18: Version 1.1.1 * New install script, "setup.py" * New flag for running programs: "w" (waits for enter press) * Minor fixes 2010-06-09: Version 1.1.0 * Added a man page * Tab support * Improved directory loading performance * Commands are definable in ~/.ranger/commands.py * Case insensitive sorting (type zs) * Better UTF support * Possibility to turn off previews (zp and zP) * Changing options with :set (e.g. :set column_ratios=1,2,3,4) * Ask for confirmation when using :delete * New invocation flag: --fail-unless-cd * New hotkeys, commands, options. * New syntax for ~/.ranger/keys.py * Several user contributions * And tons of general improvements NOTE: The syntax for configuration is still subject to change.