Tabnine Logo
Log.error
Code IndexAdd Tabnine to your IDE (free)

How to use
error
method
in
openllet.shared.tools.Log

Best Java code snippets using openllet.shared.tools.Log.error (Showing top 20 results out of 315)

origin: com.github.galigator.openllet/openllet-owlapi

@Override
public boolean hasNext()
{
  try
  {
    return _in.ready();
  }
  catch (final IOException e)
  {
    Log.error(_logger, e);
    return false;
  }
}
origin: Galigator/openllet

@Override
public boolean hasNext()
{
  try
  {
    return _in.ready();
  }
  catch (final IOException e)
  {
    Log.error(_logger, e);
    return false;
  }
}
origin: Galigator/openllet

@Override
public boolean hasNext()
{
  try
  {
    return _in.ready();
  }
  catch (final IOException e)
  {
    Log.error(_logger, e);
    return false;
  }
}
origin: Galigator/openllet

public static String getCurrentMethodName_Main(final int depth)
{
  try
  {
    final StackTraceElement element = (StackTraceElement) _m.invoke(new Throwable(), depth + 1);
    return element.getMethodName();
  }
  catch (final Exception e) // 3 exceptions. 
  {
    Log.error(_logger, e);
    return "";
  }
}
origin: Galigator/openllet

public static void error(final String msg, final Throwable t)
{
  Log.error(_logger, t);
  error(msg);
}
origin: Galigator/openllet

private static int getIntProperty(final Properties properties, final String property, final int defaultValue, final Properties defaultValues)
{
  if (null == properties)
    return defaultValue;
  defaultValues.setProperty(property, String.valueOf(defaultValue));
  final String value = properties.getProperty(property);
  int intValue = defaultValue;
  if (value != null)
    try
    {
      intValue = Integer.parseInt(value);
    }
    catch (final NumberFormatException e)
    {
      Log.error(_logger, "Ignoring invalid int value (" + value + ") for the configuration option " + property, e);
    }
  properties.setProperty(property, String.valueOf(intValue));
  return intValue;
}
origin: Galigator/openllet

private static double getDoubleProperty(final Properties properties, final String property, final double defaultValue, final Properties defaultValues)
{
  if (null == properties)
    return defaultValue;
  defaultValues.setProperty(property, String.valueOf(defaultValue));
  final String value = properties.getProperty(property);
  double doubleValue = defaultValue;
  if (value != null)
    try
    {
      doubleValue = Double.parseDouble(value);
    }
    catch (final NumberFormatException e)
    {
      Log.error(_logger, "Ignoring invalid double value (" + value + ") for the configuration option " + property, e);
    }
  properties.setProperty(property, String.valueOf(doubleValue));
  return doubleValue;
}
origin: Galigator/openllet

private static double getDoubleProperty(final Properties properties, final String property, final double defaultValue, final Properties defaultValues)
{
  if (null == properties)
    return defaultValue;
  defaultValues.setProperty(property, String.valueOf(defaultValue));
  final String value = properties.getProperty(property);
  double doubleValue = defaultValue;
  if (value != null)
    try
    {
      doubleValue = Double.parseDouble(value);
    }
    catch (final NumberFormatException e)
    {
      Log.error(_logger, "Ignoring invalid double value (" + value + ") for the configuration option " + property, e);
    }
  properties.setProperty(property, String.valueOf(doubleValue));
  return doubleValue;
}
origin: Galigator/openllet

private static int getIntProperty(final Properties properties, final String property, final int defaultValue, final Properties defaultValues)
{
  if (null == properties)
    return defaultValue;
  defaultValues.setProperty(property, String.valueOf(defaultValue));
  final String value = properties.getProperty(property);
  int intValue = defaultValue;
  if (value != null)
    try
    {
      intValue = Integer.parseInt(value);
    }
    catch (final NumberFormatException e)
    {
      Log.error(_logger, "Ignoring invalid int value (" + value + ") for the configuration option " + property, e);
    }
  properties.setProperty(property, String.valueOf(intValue));
  return intValue;
}
origin: Galigator/openllet

/**
 * Closes this writer and its underlaying _stream.
 */
@Override
public void close()
{
  try
  {
    flush();
    _stream.close();
  }
  catch (final IOException ioex)
  {
    _failures = true;
    Log.error(_logger, ioex);
  }
}
origin: Galigator/openllet

private void sync()
{
  final List<OWLOntologyChange> changes = new ArrayList<>();
  if (_delta.exists())
    try (final BufferedReader br = new BufferedReader(new FileReader(_delta)))
    {
      try (final DeltaReader reader = new DeltaReader(br))
      {
        while (reader.hasNext())
          changes.add(reader.next());
      }
    }
    catch (final Exception e)
    {
      Log.error(_logger, e);
    }
}
origin: com.github.galigator.openllet/openllet-owlapi

private void sync()
{
  final List<OWLOntologyChange> changes = new ArrayList<>();
  if (_delta.exists())
    try (final BufferedReader br = new BufferedReader(new FileReader(_delta)))
    {
      try (final DeltaReader reader = new DeltaReader(br))
      {
        while (reader.hasNext())
          changes.add(reader.next());
      }
    }
    catch (final Exception e)
    {
      Log.error(_logger, e);
    }
}
origin: Galigator/openllet

private void sync()
{
  final List<OWLOntologyChange> changes = new ArrayList<>();
  if (_delta.exists())
    try (final BufferedReader br = new BufferedReader(new FileReader(_delta)))
    {
      try (final DeltaReader reader = new DeltaReader(br))
      {
        while (reader.hasNext())
          changes.add(reader.next());
      }
    }
    catch (final Exception e)
    {
      Log.error(_logger, e);
    }
}
origin: Galigator/openllet

/**
 * {@inheritDoc}
 */
@Override
public void flush()
{
  try
  {
    processChanges(_pendingChanges);
  }
  catch (final Exception e)
  {
    Log.error(_logger, e);
  }
  _pendingChanges.clear();
  refreshCheck();
}
origin: Galigator/openllet

/**
 * {@inheritDoc}
 */
@Override
public void flush()
{
  try
  {
    processChanges(_pendingChanges);
  }
  catch (final Exception e)
  {
    Log.error(_logger, e);
  }
  _pendingChanges.clear();
  refreshCheck();
}
origin: com.github.galigator.openllet/openllet-owlapi

@Override
public OWLReasoner getReasoner()
{
  if (!_reasoner.isPresent())
    try
    {
      final OWLReasoner reasoner = _reasonerFactory.apply(getOntology());
      reasoner.isConsistent();
      _reasoner = Optional.of(reasoner);
    }
    catch (final Exception e)
    {
      Log.error(_logger, e);
      throw new OpenError(e);
    }
  _reasoner.get().flush();
  return _reasoner.get();
}
origin: Galigator/openllet

@Override
public OWLReasoner getReasoner()
{
  if (!_reasoner.isPresent())
    try
    {
      final OWLReasoner reasoner = _reasonerFactory.apply(getOntology());
      reasoner.isConsistent();
      _reasoner = Optional.of(reasoner);
    }
    catch (final Exception e)
    {
      Log.error(_logger, e);
      throw new OpenError(e);
    }
  _reasoner.get().flush();
  return _reasoner.get();
}
origin: Galigator/openllet

@Override
public OWLReasoner getReasoner()
{
  if (!_reasoner.isPresent())
    try
    {
      final OWLReasoner reasoner = _reasonerFactory.apply(getOntology());
      reasoner.isConsistent();
      _reasoner = Optional.of(reasoner);
    }
    catch (final Exception e)
    {
      Log.error(_logger, e);
      throw new OpenError(e);
    }
  _reasoner.get().flush();
  return _reasoner.get();
}
origin: com.github.galigator.openllet/openllet-examples

public void classify()
{
  System.out.println("Classify Timeout: " + Timeouts.CLASSIFY + "ms");
  System.out.print("Classifying...");
  try
  {
    ((PelletInfGraph) model.getGraph()).classify();
    System.out.println("finished in " + timers.getTimer("classify").get().getLast() + "ms");
  }
  catch (final TimeoutException e)
  {
    Log.error(_logger, e);
    System.out.println("interrupted after " + timers.getTimer("classify").get().getElapsed() + "ms");
  }
  System.out.println("Classified: " + openllet.isClassified());
  System.out.println();
}
origin: Galigator/openllet

public void classify()
{
  System.out.println("Classify Timeout: " + Timeouts.CLASSIFY + "ms");
  System.out.print("Classifying...");
  try
  {
    ((PelletInfGraph) model.getGraph()).classify();
    System.out.println("finished in " + timers.getTimer("classify").get().getLast() + "ms");
  }
  catch (final TimeoutException e)
  {
    Log.error(_logger, e);
    System.out.println("interrupted after " + timers.getTimer("classify").get().getElapsed() + "ms");
  }
  System.out.println("Classified: " + openllet.isClassified());
  System.out.println();
}
openllet.shared.toolsLogerror

Popular methods of Log

  • getLogger
  • warning
  • config
  • setLevel
  • toSlf4j

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Join (org.hibernate.mapping)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook extensions
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