Codota Logo
IllegalFieldValueException.getMessage
Code IndexAdd Codota to your IDE (free)

How to use
getMessage
method
in
org.joda.time.IllegalFieldValueException

Best Java code snippets using org.joda.time.IllegalFieldValueException.getMessage (Showing top 3 results out of 315)

  • Common ways to obtain IllegalFieldValueException
private void myMethod () {
IllegalFieldValueException i =
  • Codota IconString value;new IllegalFieldValueException(DateTimeFieldType.era(), value)
  • Codota IconString value;new IllegalFieldValueException(DateTimeFieldType.monthOfYear(), value)
  • Codota IconString value;new IllegalFieldValueException(DateTimeFieldType.halfdayOfDay(), value)
  • Smart code suggestions by Codota
}
origin: edu.stanford.nlp/corenlp

 protected SUTime.Temporal extract(MatchResult results) {
  try {
   return tempFunc.apply(results);
  } catch(org.joda.time.IllegalFieldValueException e) {
   logger.warning("WARNING: found invalid temporal expression: \"" + e.getMessage() +"\". Will discard it...");
   return null;
  }
 }
}
origin: edu.stanford.nlp/corenlp

  public SUTime.Temporal apply(String text) {
   // TODO: TIMEZONE?
   DateTime dateTime = null; 
   try {
    dateTime = formatter.parseDateTime(text);
   } catch(org.joda.time.IllegalFieldValueException e) {
    logger.warning("WARNING: Invalid temporal \"" + text + "\" (" + e.getMessage() + "). Skipping and continuing...");
    return null;
   }
   assert(dateTime != null);
   if (hasDate && hasTime) {
    return new SUTime.GroundedTime(dateTime);
//        return new SUTime.IsoDateTime( new SUTime.IsoTime(dateTime.getHourOfDay(), dateTime.getMinuteOfHour(), dateTime.getSecondOfMinute());
//        Date d = new SUTime.IsoDate(dateTime.getYear(), dateTime.getMonthOfYear(), dateTime.getDayOfMonth()) );
   } else if (hasTime) {
    // TODO: Millisecs?
    return new SUTime.IsoTime(dateTime.getHourOfDay(), dateTime.getMinuteOfHour(), dateTime.getSecondOfMinute());
   } else if (hasDate) {
    return new SUTime.IsoDate(dateTime.getYear(), dateTime.getMonthOfYear(), dateTime.getDayOfMonth());
   } else {
    return null;
   }      
  }

origin: org.marketcetera/core

} catch (IllegalFieldValueException e) {
  Messages.INVALID_MATURITY_DAY.warn(OptionFromMessage.class,
                    e.getMessage(),
                    value);
  inMessage.removeField(MaturityDay.FIELD);
org.joda.timeIllegalFieldValueExceptiongetMessage

Popular methods of IllegalFieldValueException

  • <init>
    Constructor.
  • createMessage
    Creates a message for the exception.
  • prependMessage
    Provide additional detail by prepending a message to the existing message. A colon is separator is a
  • initCause
  • getFieldName
    Returns the name of the field whose value was invalid.
  • getLowerBound
    Returns the lower bound of the legal value range, or null if not applicable.
  • getUpperBound
    Returns the upper bound of the legal value range, or null if not applicable.

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • addToBackStack (FragmentTransaction)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now