X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fcommons%2Fgui%2Fdialog%2FExceptionDialog.java;fp=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fcommons%2Fgui%2Fdialog%2FExceptionDialog.java;h=c951916ff960c850f9f3bcca9c49ee18bf0d8dc5;hb=cf965fda534cc562368c9f2a3f34475e2519fcdc;hp=a80e6e3688408318ede3922ac9654b8b59f8975b;hpb=6a9352a6edbeaa1a2b3dafc09e91f53ab1871e1c;p=svjatoslav_commons.git diff --git a/src/main/java/eu/svjatoslav/commons/gui/dialog/ExceptionDialog.java b/src/main/java/eu/svjatoslav/commons/gui/dialog/ExceptionDialog.java index a80e6e3..c951916 100755 --- a/src/main/java/eu/svjatoslav/commons/gui/dialog/ExceptionDialog.java +++ b/src/main/java/eu/svjatoslav/commons/gui/dialog/ExceptionDialog.java @@ -1,6 +1,6 @@ /* * Svjatoslav Commons - shared library of common functionality. - * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Copyright ©2012-2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License @@ -19,6 +19,18 @@ import javax.swing.JPanel; public class ExceptionDialog { + /** + * This method is for testing + */ + public static void main(final String[] args) { + + final Throwable cause = new Throwable("details....."); + + final Exception exception = new Exception("test", cause); + + new ExceptionDialog(exception); + } + public ExceptionDialog(final Exception exception) { showException(exception); } @@ -91,16 +103,4 @@ public class ExceptionDialog { } - /** - * This method is for testing - */ - public static void main(final String[] args) { - - final Throwable cause = new Throwable("details....."); - - final Exception exception = new Exception("test", cause); - - new ExceptionDialog(exception); - } - }