Created
October 12, 2011 03:20
-
-
Save yuroyoro/1280171 to your computer and use it in GitHub Desktop.
?!メソッド便利ですね
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ozaki@mbp-4 $ scala [~] | |
| Picked up _JAVA_OPTIONS: -Dfile.encoding=UTF-8 | |
| Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_26). | |
| Type in expressions to have them evaluated. | |
| Type :help for more information. | |
| scala> def ?! = throw new UnsupportedOperationException("“事故“る奴は・・・・“不運” (ハードラック )と“踊”(ダンス )っちまったんだよ・・・・") | |
| $qmark$bang: Nothing | |
| scala> ?! | |
| java.lang.UnsupportedOperationException: “事故“る奴は・・・・“不運” (ハードラック )と“踊”(ダンス )っちまったんだよ・・・・ | |
| at .$qmark$bang(<console>:7) | |
| at .<init>(<console>:9) | |
| at .<clinit>(<console>) | |
| at .<init>(<console>:11) | |
| at .<clinit>(<console>) | |
| at $print(<console>) | |
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
| at java.lang.reflect.Method.invoke(Method.java:597) | |
| at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:704) | |
| at scala.tools.nsc.interpreter.IMain$Request$$anonfun$14.apply(IMain.scala:920) | |
| at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:43) | |
| at scala.tools.nsc.io.package$$anon$2.run(package.scala:25) | |
| at java.lang.Thread.run(Thread.java:680) | |
| scala> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment