From 7a76e13459e7bebbde5d529839699c8f31258cd0 Mon Sep 17 00:00:00 2001 From: ebanks Date: Wed, 9 Dec 2009 03:59:36 +0000 Subject: [PATCH] Better explanation in the exception being thrown. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2291 348d0f76-0448-11de-a6fe-93d51630548a --- .../sting/utils/cmdLine/ArgumentTypeDescriptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/org/broadinstitute/sting/utils/cmdLine/ArgumentTypeDescriptor.java b/java/src/org/broadinstitute/sting/utils/cmdLine/ArgumentTypeDescriptor.java index b2af39842..26153f3ae 100644 --- a/java/src/org/broadinstitute/sting/utils/cmdLine/ArgumentTypeDescriptor.java +++ b/java/src/org/broadinstitute/sting/utils/cmdLine/ArgumentTypeDescriptor.java @@ -255,7 +255,7 @@ class SimpleArgumentTypeDescriptor extends ArgumentTypeDescriptor { } catch (IllegalAccessException e) { throw new StingException("constructFromString:IllegalAccessException: Failed conversion " + e.getMessage()); } catch (InvocationTargetException e) { - throw new StingException("constructFromString:InvocationTargetException: Failed conversion " + e.getMessage()); + throw new StingException("constructFromString:InvocationTargetException: Failed conversion - this is most likely caused by using an incorrect data type (e.g. a double when an int is required)"); } catch (InstantiationException e) { throw new StingException("constructFromString:InstantiationException: Failed conversion " + e.getMessage()); }