Skip to content

Instantly share code, notes, and snippets.

@aileron
Created January 25, 2014 01:01
Show Gist options
  • Select an option

  • Save aileron/8610113 to your computer and use it in GitHub Desktop.

Select an option

Save aileron/8610113 to your computer and use it in GitHub Desktop.
ぬるぽを、ガってする。
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
/**
* ガってする
*/
public class NullPoInterceptor implements MethodInterceptor
{
@Override
public Object invoke(final MethodInvocation invocation) throws Throwable
{
try
{
return invocation.proceed();
}
catch (final NullPointerException e)
{
throw new Exception(new StringBuilder().append("\n")
.append("  Λ_Λ  \\")
.append("\n")
.append("  ( ・∀・)   | | ガッ")
.append("\n")
.append(" と    )    | |" + "   Y /ノ    人")
.append("\n")
.append("    / )    <  >_Λ∩")
.append("\n")
.append("  _/し' //. V`Д´)/")
.append("\n")
.append(" (_フ彡        /")
.toString(), e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment