Tabnine Logo
UnsupportedOperationException.getLocalizedMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getLocalizedMessage
method
in
java.lang.UnsupportedOperationException

Best Java code snippets using java.lang.UnsupportedOperationException.getLocalizedMessage (Showing top 18 results out of 315)

origin: org.apache.hadoop/hadoop-common

} catch (UnsupportedOperationException e){
 errOut.println("Failover command is not supported with " +
   "auto-failover enabled: " + e.getLocalizedMessage());
 return -1;
origin: jMonkeyEngine/jmonkeyengine

  System.out.println("Formats for " + ma + " and " + type + ": " + Arrays.toString(clContext.querySupportedFormats(ma, type)));
} catch (UnsupportedOperationException e) {
  LOG.warning(e.getLocalizedMessage());
origin: deegree/deegree3

/**
 * @param sb
 * @param o
 */
public void eval( StringBuilder sb, Object o ) {
  if ( o instanceof Property ) {
    try {
      sb.append( ( (Property) o ).getValue() );
    } catch ( UnsupportedOperationException e ) {
      LOG.error( "The error '{}' occurred while converting a property to a string, "
            + "probably the WKT writer cannot convert a geometry.", e.getLocalizedMessage() );
      LOG.debug( "Stack trace:", e );
    }
  } else {
    LOG.warn( "Trying to get value while current object is a feature." );
  }
}
origin: org.eclipse/org.eclipse.datatools.connectivity.oda.consumer

protected void logUnsupportedOp( UnsupportedOperationException exception,
                 String context )
{
  Logger logger = getLogger();
  if( logger != null )
  {
    String logMsg = exception.getLocalizedMessage();
    if ( logMsg == null || logMsg.length() == 0 )
      logMsg = context;
    else
      logMsg = context + ": " + logMsg; //$NON-NLS-1$
    logger.warning( logMsg );
  }
}
 
origin: org.eclipse/org.eclipse.datatools.connectivity.oda.consumer

protected void handleUnsupportedOp( UnsupportedOperationException exception,
                  String context )
{
  // want to log the old exception because our new exception will have
  // a different stack trace than the old one and the user will want 
  // to see the old stack trace in the logs.
  Logger logger = getLogger();
  if( logger != null )
    logger.severe( exception );
  
  // we'll have to reconstruct a new exception object if the 
  // existing exception doesn't have a message because the 
  // Exception class has no setters for message.
  String exceptionMsg = exception.getLocalizedMessage();
  exception = 
    ( exceptionMsg == null || exceptionMsg.length() == 0 ) ?
    new UnsupportedOperationException( context ) : exception;
  
  throw exception;
}
 
origin: deegree/deegree3

} catch ( UnsupportedOperationException e ) {
  LOG.error( "The error '{}' occurred while converting a property to a string, "
        + "probably the WKT writer cannot convert a geometry.", e.getLocalizedMessage() );
  LOG.debug( "Stack trace:", e );
origin: org.geotools/gt-widgets-swing-pending

private void setIdentifiedObject(final IdentifiedObject item) {
  String text;
  try {
    text = item.toWKT();
  } catch (UnsupportedOperationException e) {
    text = e.getLocalizedMessage();
    if (text == null) {
      text = Classes.getShortClassName(e);
    }
    final String lineSeparator = System.getProperty("line.separator", "\n");
    if (e instanceof UnformattableObjectException) {
      text = Vocabulary.format(VocabularyKeys.WARNING) + ": " + text +
          lineSeparator + lineSeparator + item + lineSeparator;
    } else {
      text = Vocabulary.format(VocabularyKeys.ERROR) + ": " + text + lineSeparator;
    }
  }
  wktArea.setText(text);
}
origin: org.geotools/gt-widgets-swing-pending

private void setIdentifiedObject(final IdentifiedObject item) {
  String text;
  try {
    text = item.toWKT();
  } catch (UnsupportedOperationException e) {
    text = e.getLocalizedMessage();
    if (text == null) {
      text = Classes.getShortClassName(e);
    }
    final String lineSeparator = System.getProperty("line.separator", "\n");
    if (e instanceof UnformattableObjectException) {
      text = Vocabulary.format(VocabularyKeys.WARNING) + ": " + text +
          lineSeparator + lineSeparator + item + lineSeparator;
    } else {
      text = Vocabulary.format(VocabularyKeys.ERROR) + ": " + text + lineSeparator;
    }
  }
  wktArea.setText(text);
}
origin: org.geotools/gt2-widgets-swing

/**
 * Sets the object to display in this property sheet.
 *
 * @param item The object to display info about.
 */
public void setIdentifiedObject(final IdentifiedObject item) {
  String text;
  try {
    text = item.toWKT();
  } catch (UnsupportedOperationException e) {
    text = e.getLocalizedMessage();
    if (text == null) {
      text = Utilities.getShortClassName(e);
    }
    final String lineSeparator = System.getProperty("line.separator", "\n");
    if (e instanceof UnformattableObjectException) {
      text = Vocabulary.format(VocabularyKeys.WARNING) + ": " + text +
          lineSeparator + lineSeparator + item + lineSeparator;
    } else {
      text = Vocabulary.format(VocabularyKeys.ERROR) + ": " + text + lineSeparator;
    }
  }
  wktArea.setText(text);
}
origin: org.geotools/gt-widgets-swing-pending

private void setIdentifiedObject(final IdentifiedObject item) {
  String text = "";
  try {
    if (item != null) {
      text = item.toWKT();
    }
  } catch (UnsupportedOperationException e) {
    text = e.getLocalizedMessage();
    if (text == null) {
      text = Classes.getShortClassName(e);
    }
    final String lineSeparator = System.getProperty("line.separator", "\n");
    if (e instanceof UnformattableObjectException) {
      text = Vocabulary.format(VocabularyKeys.WARNING) + ": " + text +
          lineSeparator + lineSeparator + item + lineSeparator;
    } else {
      text = Vocabulary.format(VocabularyKeys.ERROR) + ": " + text + lineSeparator;
    }
  }
  wktArea.setText(text);
}
origin: org.netbeans.modules/org-netbeans-modules-debugger-jpda-projects

  debugger.fixClasses(map);
} catch (UnsupportedOperationException uoex) {
  error = NbBundle.getMessage(SourcePathProviderImpl.class, "MSG_FixUnsupported", uoex.getLocalizedMessage());
} catch (NoClassDefFoundError ncdfex) {
  error = NbBundle.getMessage(SourcePathProviderImpl.class, "MSG_FixMismatch", ncdfex.getLocalizedMessage());
origin: org.jruby/jruby-core

public IRubyObject initialize(ThreadContext context, ProtocolFamily family) {
  Ruby runtime = context.runtime;
  try {
    this.family = family;
    DatagramChannel channel = DatagramChannel.open(family);
    initSocket(newChannelFD(runtime, channel));
  } catch (ConnectException e) {
    throw runtime.newErrnoECONNREFUSEDError();
  } catch (UnknownHostException e) {
    throw SocketUtils.sockerr(runtime, "initialize: name or service not known");
  } catch (UnsupportedOperationException uoe) {
    if (uoe.getMessage().contains("IPv6 not available")) {
      throw runtime.newErrnoEAFNOSUPPORTError("socket(2) - udp");
    }
    throw sockerr(runtime, "UnsupportedOperationException: " + uoe.getLocalizedMessage(), uoe);
  } catch (IOException e) {
    throw sockerr(runtime, "initialize: name or service not known", e);
  }
  return this;
}
origin: org.jruby/jruby-complete

public IRubyObject initialize(ThreadContext context, ProtocolFamily family) {
  Ruby runtime = context.runtime;
  try {
    this.family = family;
    DatagramChannel channel = DatagramChannel.open(family);
    initSocket(newChannelFD(runtime, channel));
  } catch (ConnectException e) {
    throw runtime.newErrnoECONNREFUSEDError();
  } catch (UnknownHostException e) {
    throw SocketUtils.sockerr(runtime, "initialize: name or service not known");
  } catch (UnsupportedOperationException uoe) {
    if (uoe.getMessage().contains("IPv6 not available")) {
      throw runtime.newErrnoEAFNOSUPPORTError("socket(2) - udp");
    }
    throw sockerr(runtime, "UnsupportedOperationException: " + uoe.getLocalizedMessage(), uoe);
  } catch (IOException e) {
    throw sockerr(runtime, "initialize: name or service not known", e);
  }
  return this;
}
origin: io.hops/hadoop-common

} catch (UnsupportedOperationException e){
 errOut.println("Failover command is not supported with " +
   "auto-failover enabled: " + e.getLocalizedMessage());
 return -1;
origin: ch.cern.hadoop/hadoop-common

} catch (UnsupportedOperationException e){
 errOut.println("Failover command is not supported with " +
   "auto-failover enabled: " + e.getLocalizedMessage());
 return -1;
origin: com.github.jiayuhan-it/hadoop-common

} catch (UnsupportedOperationException e){
 errOut.println("Failover command is not supported with " +
   "auto-failover enabled: " + e.getLocalizedMessage());
 return -1;
origin: org.codehaus.mevenide/nb-project

  debugger.fixClasses (map);
} catch (UnsupportedOperationException uoex) {
  error = "The virtual machine does not support this operation: "+uoex.getLocalizedMessage();
} catch (NoClassDefFoundError ncdfex) {
  error = "The bytes don't correspond to the class type (the names don't match): "+ncdfex.getLocalizedMessage();
origin: io.prestosql.hadoop/hadoop-apache

} catch (UnsupportedOperationException e){
 errOut.println("Failover command is not supported with " +
   "auto-failover enabled: " + e.getLocalizedMessage());
 return -1;
java.langUnsupportedOperationExceptiongetLocalizedMessage

Popular methods of UnsupportedOperationException

  • <init>
    Constructs a new exception with the specified cause and a detail message of (cause==null ? null : c
  • getMessage
  • getStackTrace
  • setStackTrace
  • printStackTrace
  • initCause
  • toString
  • getCause
  • fillInStackTrace

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • JList (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top PhpStorm plugins
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