/eid-generator

Netbeans - Exception ID (EID) Generator

Primary LanguageJavaMIT LicenseMIT

Exception ID (EID) Generator

Build Status

A plugin for Netbeans 8.1

Download

http://plugins.netbeans.org/plugin/53137/exception-id-eid-generator

Maven

<dependency>
    <groupId>pl.wavesoftware</groupId>
    <artifactId>netbeans-eid-generator</artifactId>
    <version>0.4.0</version>
    <type>nbm</type>
</dependency>

Usage

Generates a unique Exception ID, that can be used in Java source code.

In order to use this plugin type Ctrl+Space inside empty String literal. This will generate new unique identifier as a Code Completion. That generated EID can be used, for example, to identify your exceptions.

Example

This is technical runtime exception, a posible bug. EID Generator plugin can be used to quickly fill unique bug id.

try {
    shuldWorkIfNoBugsExists();
} catch (IOException ex) {
    throw new EidRuntimeException("20140218:161429", "Something wrong with HDD, permissions?", ex);
}

To invoke EID code completion:

throw new EidRuntimeException("<Ctrl+Space>"