Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Getting Exception when attribute of EDate is created.
Getting Exception when attribute of EDate is created. [message #622822] Wed, 05 May 2010 12:34 Go to next message
Milind is currently offline MilindFriend
Messages: 31
Registered: April 2010
Member
For an attribute of EDate datatype is created, while giivng values in the properites window getting the following exception

Wrappedexception: java.text.parseexception:unparseable date: ""

please tell on how to resolve the exception
Re: Getting Exception when attribute of EDate is created. [message #622826 is a reply to message #622822] Wed, 05 May 2010 13:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
You have to enter a well formed date value. These are the formats
expected/accepted

new SafeSimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ"),
new SafeSimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'.'SSS"),
new SafeSimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"),
new SafeSimpleDateFormat("yyyy-MM-dd'T'HH:mm"),
new SafeSimpleDateFormat("yyyy-MM-dd")


swathi wrote:
> For an attribute of EDate datatype is created, while giivng values in
> the properites window getting the following exception
>
> Wrappedexception: java.text.parseexception:unparseable date: ""
>
> please tell on how to resolve the exception


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Getting Exception when attribute of EDate is created. [message #622856 is a reply to message #622822] Fri, 07 May 2010 12:22 Go to previous message
Milind is currently offline MilindFriend
Messages: 31
Registered: April 2010
Member
Is there anyway for handling the system generated exception with some user friendly message if the user gives date in invalid format.
Previous Topic:Getting Exception when attribute of EDate is created.
Next Topic:[Ecore Tools] Integration with EMF Validation and/or MDT OCL
Goto Forum:
  


Current Time: Thu Apr 18 01:17:40 GMT 2024

Powered by FUDForum. Page generated in 0.02676 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top