Monday, 10 September 2007
Every time I change job I always tend to spend too much time remembering how to search for "pre-1.4 style" custom exceptions that try to store their root causes in a field. So here is the IDEA custom template for that:
Variables $Parent$ and $Throwable$ should be constrained with "text/regular expression" set to "Throwable" and "apply within type hierarchy" checkbox checked.
class $Class$ extends $Parent$ {
$Throwable$ $varName$;
}
Variables $Parent$ and $Throwable$ should be constrained with "text/regular expression" set to "Throwable" and "apply within type hierarchy" checkbox checked.
Labels: exception, idea, java, pattern