Questions tagged [parseexception]

A Java ParseException gets raised whenever a ParseObject issues an invalid request.

A Java ParseException gets raised whenever a ParseObject issues an invalid request, such as deleting or editing an object that no longer exists on the server, or when there is a network failure preventing communication with the Parse server.

188 questions
-2
votes
2 answers

SimpleDateFormat don't parse a string with a date when I use setLenient()

I don't understand what is going wrong with the code below: SimpleDateFormat formatter = new SimpleDateFormat("MM.dd.yy hh:mm:ss"); formatter.setLenient(false); formatter.parse("04.29.2017 00:55:05"); When I try to parse the string with a date I…
Barmaglot
  • 81
  • 11
-2
votes
1 answer

How to make custom JavaCC Exception messages?

I want to just start this of by saying I know that a similar question exists here: How to create specific error messages based on parse exceptions in JavaCC But I don't have the required 50 rep to comment on it to ask my question. I'm trying to…
Rikg09
  • 165
  • 2
  • 2
  • 14
-2
votes
1 answer

Why do I get a parse exception

this programe should subtract 2 days tare3 and tare4 . tare3 valued from current day (from system ) tare4 value from text file (element [3]) , when i parsed string (element[3]) to date (tare4) its give`me parseexception date saved in file looked…
-3
votes
1 answer

ParseException when using SimpleDateFormat.parse("yyyy-MM-dd")

My code looks as follows: (new SimpleDateFormat("yyyy-MM-dd")).parse("0000-12-25") This argument is supposed to pass a date object to a constructor, but I get a ParseException. I tried playing around with Locale.US and Locale.ENGLISH, no…
-3
votes
1 answer

Is ParseException only thrown for conversion from string to date?

I'm trying to become clear about ParseException. Its example focus is "convert from string to date", and I also found: This is a checked exception and it can occur when you fail to parse a String that is ought to have a special format. But I…
Vũ Minh Vương
  • 163
  • 6
  • 20
-3
votes
1 answer

Android - Unparseable date at offset

i was trying to parse string date to Date, it shows unparseable date at offset. Here is my code. String s= "2014-07-17 10:12:00"; SimpleDateFormat sdfDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss Z"); Date current = new Date(); Date givenDate…
srinu_stack
  • 117
  • 1
  • 2
  • 7
-3
votes
1 answer

ParseException for number java

ı don't use ParseException and ı didn't find in internet. so please can you give example ParseException ??? ı am waiting your codes. please help me ??? //how is try?? catch(ParseException e){ }
-5
votes
2 answers

Java SimpleDateFormat Exception: unparseable date

I am trying to get Java to read in a date formatted as follows: Thu Mar 8 13:33:25 2012 But getting an unparseable exception. Here's the code: SimpleDateFormat formatter2 = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy", Locale.ENGLISH); String…
Zainab Abaid
  • 43
  • 1
  • 5
1 2 3
12
13