congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DateParseException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.http.impl.cookie.DateParseException
constructor

Best Java code snippets using org.apache.http.impl.cookie.DateParseException.<init> (Showing top 10 results out of 315)

origin: robovm/robovm

throw new DateParseException("Unable to parse the date " + dateValue);        
origin: com.hynnet/httpclient

/**
 * Parses the date value using the given date formats.
 *
 * @param dateValue the date value to parse
 * @param dateFormats the date formats to use
 * @param startDate During parsing, two digit years will be placed in the range
 * {@code startDate} to {@code startDate + 100 years}. This value may
 * be {@code null}. When {@code null} is given as a parameter, year
 * {@code 2000} will be used.
 *
 * @return the parsed date
 *
 * @throws DateParseException if none of the dataFormats could parse the dateValue
 */
public static Date parseDate(
  final String dateValue,
  final String[] dateFormats,
  final Date startDate
) throws DateParseException {
  final Date d = org.apache.http.client.utils.DateUtils.parseDate(dateValue, dateFormats, startDate);
  if (d == null) {
    throw new DateParseException("Unable to parse the date " + dateValue);
  }
  return d;
}
origin: at.bestsolution.efxclipse.eclipse/org.apache.httpcomponents.httpclient

/**
 * Parses the date value using the given date formats.
 *
 * @param dateValue the date value to parse
 * @param dateFormats the date formats to use
 * @param startDate During parsing, two digit years will be placed in the range
 * <code>startDate</code> to <code>startDate + 100 years</code>. This value may
 * be <code>null</code>. When <code>null</code> is given as a parameter, year
 * <code>2000</code> will be used.
 *
 * @return the parsed date
 *
 * @throws DateParseException if none of the dataFormats could parse the dateValue
 */
public static Date parseDate(
  final String dateValue,
  final String[] dateFormats,
  final Date startDate
) throws DateParseException {
  final Date d = org.apache.http.client.utils.DateUtils.parseDate(dateValue, dateFormats, startDate);
  if (d == null) {
    throw new DateParseException("Unable to parse the date " + dateValue);
  }
  return d;
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Parses the date value using the given date formats.
 *
 * @param dateValue the date value to parse
 * @param dateFormats the date formats to use
 * @param startDate During parsing, two digit years will be placed in the range
 * {@code startDate} to {@code startDate + 100 years}. This value may
 * be {@code null}. When {@code null} is given as a parameter, year
 * {@code 2000} will be used.
 *
 * @return the parsed date
 *
 * @throws DateParseException if none of the dataFormats could parse the dateValue
 */
public static Date parseDate(
  final String dateValue,
  final String[] dateFormats,
  final Date startDate
) throws DateParseException {
  final Date d = org.apache.http.client.utils.DateUtils.parseDate(dateValue, dateFormats, startDate);
  if (d == null) {
    throw new DateParseException("Unable to parse the date " + dateValue);
  }
  return d;
}
origin: Nextdoor/bender

/**
 * Parses the date value using the given date formats.
 *
 * @param dateValue the date value to parse
 * @param dateFormats the date formats to use
 * @param startDate During parsing, two digit years will be placed in the range
 * {@code startDate} to {@code startDate + 100 years}. This value may
 * be {@code null}. When {@code null} is given as a parameter, year
 * {@code 2000} will be used.
 *
 * @return the parsed date
 *
 * @throws DateParseException if none of the dataFormats could parse the dateValue
 */
public static Date parseDate(
  final String dateValue,
  final String[] dateFormats,
  final Date startDate
) throws DateParseException {
  final Date d = org.apache.http.client.utils.DateUtils.parseDate(dateValue, dateFormats, startDate);
  if (d == null) {
    throw new DateParseException("Unable to parse the date " + dateValue);
  }
  return d;
}
origin: stackoverflow.com

year = Integer.parseInt(yearStr);
} catch (Exception e) {
throw new DateParseException("Could not parse '"+yearStr+"' as a valid year");
throw new DateParseException("Could not parse '"+dayStr+"' as a valid day");
throw new DateParseException("Could not parse '"+monthStr+"' as a valid month");
hour = Integer.parseInt(hourStr);
} catch (Exception e) {
throw new DateParseException("Could not parse '"+hourStr+"' as a valid hour");
throw new DateParseException("Could not parse '"+minuteStr+"' as a valid minute");
throw new DateParseException("Could not parse '"+secondsStr+"' as a valid seconds");
throw new DateParseException("Could not parse '"+millisStr+"' as a valid millis");
origin: MobiVM/robovm

throw new DateParseException("Unable to parse the date " + dateValue);        
origin: com.mobidevelop.robovm/robovm-rt

throw new DateParseException("Unable to parse the date " + dateValue);        
origin: com.gluonhq/robovm-rt

throw new DateParseException("Unable to parse the date " + dateValue);        
origin: FlexoVM/flexovm

throw new DateParseException("Unable to parse the date " + dateValue);        
org.apache.http.impl.cookieDateParseException<init>

Popular methods of DateParseException

  • getMessage

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Table (org.hibernate.mapping)
    A relational table
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now