Skip to content

Instantly share code, notes, and snippets.

@diogoko
Last active May 11, 2016 10:48
Show Gist options
  • Save diogoko/f67ba032de228f8f46787bbcd4cb8980 to your computer and use it in GitHub Desktop.
Save diogoko/f67ba032de228f8f46787bbcd4cb8980 to your computer and use it in GitHub Desktop.
Stack traces by language

Java

Exception in thread "main" java.lang.Exception: hi
	at Codechef.f(Main.java:11)
	at Codechef.main(Main.java:17)

Python

Traceback (most recent call last):
  File "prog.py", line 8, in <module>
  File "prog.py", line 6, in main
  File "prog.py", line 3, in f
Exception: hi

Ruby

prog.rb:3:in `f': hi (RuntimeError)
	from prog.rb:7:in `main'
	from prog.rb:10:in `<main>'

C#

System.Exception: hi
  at Test.Main () [0x00000] in <filename unknown>:0 

PHP

PHP Fatal error:  Uncaught exception 'Exception' with message 'hi' in /home/fXL5rP/prog.php:4
Stack trace:
#0 /home/fXL5rP/prog.php(8): f()
#1 /home/fXL5rP/prog.php(11): main()
#2 {main}
  thrown in /home/fXL5rP/prog.php on line 4

Node.js

Error: hi
    at f (/home/4PjSc7/prog.js:6:11)
    at main (/home/4PjSc7/prog.js:10:5)
    at Object.<anonymous> (/home/4PjSc7/prog.js:13:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:929:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment