congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ErrorHandler
Code IndexAdd Tabnine to your IDE (free)

How to use
ErrorHandler
in
org.apache.batik.transcoder

Best Java code snippets using org.apache.batik.transcoder.ErrorHandler (Showing top 20 results out of 315)

origin: apache/batik

/**
 * Displays the specified error using the <code>ErrorHandler</code>.
 */
public void displayError(Exception e) {
  try {
    e.printStackTrace();
    SVGAbstractTranscoder.this.handler.error
      (new TranscoderException(e));
  } catch (TranscoderException ex) {
    throw new RuntimeException( ex.getMessage() );
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  /**
   * Creates a transcoder exception.
   */
  protected TranscoderException fatalError(String key, Object[] params)
    throws TranscoderException {
    TranscoderException result = new TranscoderException(key);
    errorHandler.fatalError(result);
    return result;
  }
}
origin: apache/batik

/**
 * Displays the specified message using the <code>ErrorHandler</code>.
 */
public void displayMessage(String message) {
  try {
    SVGAbstractTranscoder.this.handler.warning
      (new TranscoderException(message));
  } catch (TranscoderException ex) {
    throw new RuntimeException( ex.getMessage() );
  }
}
origin: apache/fop

/**
 * Displays the specified error message using the {@link ErrorHandler}.
 * @param message the message to display
 */
public void displayError(String message) {
  try {
    getErrorHandler().error(new TranscoderException(message));
  } catch (TranscoderException ex) {
    throw new RuntimeException();
  }
}
origin: apache/batik

  /**
   * Creates a transcoder exception.
   */
  protected TranscoderException fatalError(String key, Object[] params)
    throws TranscoderException {
    TranscoderException result = new TranscoderException(key);
    errorHandler.fatalError(result);
    return result;
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Displays the specified message using the <code>ErrorHandler</code>.
 */
public void displayMessage(String message) {
  try {
    SVGAbstractTranscoder.this.handler.warning
      (new TranscoderException(message));
  } catch (TranscoderException ex) {
    throw new RuntimeException( ex.getMessage() );
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Displays the specified error using the <code>ErrorHandler</code>.
 */
public void displayError(Exception e) {
  try {
    e.printStackTrace();
    SVGAbstractTranscoder.this.handler.error
      (new TranscoderException(e));
  } catch (TranscoderException ex) {
    throw new RuntimeException( ex.getMessage() );
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

  handler.fatalError(new TranscoderException( String.valueOf( ERROR_NULL_INPUT ) ));
    return new DataInputStream(new BufferedInputStream(in));
  } catch (MalformedURLException e){
    handler.fatalError(new TranscoderException(e));
  } catch (IOException e){
    handler.fatalError(new TranscoderException(e));
handler.fatalError(new TranscoderException( String.valueOf( ERROR_INCOMPATIBLE_INPUT_TYPE ) ));
return null;
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Displays the specified error message using the <code>ErrorHandler</code>.
 */
public void displayError(String message) {
  try {
    SVGAbstractTranscoder.this.handler.error
      (new TranscoderException(message));
  } catch (TranscoderException ex) {
    throw new RuntimeException( ex.getMessage() );
  }
}
origin: apache/batik

  handler.fatalError(new TranscoderException( String.valueOf( ERROR_NULL_INPUT ) ));
    return new DataInputStream(new BufferedInputStream(in));
  } catch (MalformedURLException e){
    handler.fatalError(new TranscoderException(e));
  } catch (IOException e){
    handler.fatalError(new TranscoderException(e));
handler.fatalError(new TranscoderException( String.valueOf( ERROR_INCOMPATIBLE_INPUT_TYPE ) ));
return null;
origin: apache/fop

/**
 * Displays the specified error using the {@link ErrorHandler}.
 * @param e the exception to display
 */
public void displayError(Exception e) {
  try {
    getErrorHandler().error(new TranscoderException(e));
  } catch (TranscoderException ex) {
    throw new RuntimeException();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

handler.fatalError(new TranscoderException("" + ERROR_INCOMPATIBLE_OUTPUT_TYPE));
    return;
  } catch (MalformedURLException e){
    handler.fatalError(new TranscoderException(e));
  } catch (IOException e){
    handler.fatalError(new TranscoderException(e));
origin: apache/batik

/**
 * Displays the specified error message using the <code>ErrorHandler</code>.
 */
public void displayError(String message) {
  try {
    SVGAbstractTranscoder.this.handler.error
      (new TranscoderException(message));
  } catch (TranscoderException ex) {
    throw new RuntimeException( ex.getMessage() );
  }
}
origin: apache/batik

handler.fatalError(new TranscoderException("" + ERROR_INCOMPATIBLE_OUTPUT_TYPE));
    return;
  } catch (MalformedURLException e){
    handler.fatalError(new TranscoderException(e));
  } catch (IOException e){
    handler.fatalError(new TranscoderException(e));
origin: fr.avianey.apache-xmlgraphics/batik

te = new TranscoderException
  (Messages.formatMessage("jpeg.unspecifiedQuality", null));
handler.error(te);
quality = 0.75f;
origin: fr.avianey.apache-xmlgraphics/batik

  handler.fatalError(new TranscoderException(
    "Unspecified transcoding hints: KEY_DOM_IMPLEMENTATION"));
  return;
  handler.fatalError(new TranscoderException(
  "Unspecified transcoding hints: KEY_DOCUMENT_ELEMENT_NAMESPACE_URI"));
  return;
  handler.fatalError(new TranscoderException(
    "Unspecified transcoding hints: KEY_DOCUMENT_ELEMENT"));
  return;
  handler.fatalError(new TranscoderException(ex));
} catch (IOException ex) {
  handler.fatalError(new TranscoderException(ex));
} catch(TranscoderException ex) {
  handler.fatalError(ex);
  return;
origin: apache/batik

te = new TranscoderException
  (Messages.formatMessage("jpeg.unspecifiedQuality", null));
handler.error(te);
quality = 0.75f;
origin: apache/batik

  handler.fatalError(new TranscoderException(
    "Unspecified transcoding hints: KEY_DOM_IMPLEMENTATION"));
  return;
  handler.fatalError(new TranscoderException(
  "Unspecified transcoding hints: KEY_DOCUMENT_ELEMENT_NAMESPACE_URI"));
  return;
  handler.fatalError(new TranscoderException(
    "Unspecified transcoding hints: KEY_DOCUMENT_ELEMENT"));
  return;
  handler.fatalError(new TranscoderException(ex));
} catch (IOException ex) {
  handler.fatalError(new TranscoderException(ex));
} catch(TranscoderException ex) {
  handler.fatalError(ex);
  return;
origin: fr.avianey.apache-xmlgraphics/batik

  out.flush();
} catch (IOException e) {
  getErrorHandler().fatalError(new TranscoderException(e.getMessage()));
origin: fr.avianey.apache-xmlgraphics/batik

  currentStore.read(is);
} catch (IOException e){
  handler.fatalError(new TranscoderException(e));
  return;
org.apache.batik.transcoderErrorHandler

Javadoc

This interface provides a way to catch errors and warnings from a Transcoder. If an application needs to implement customized error handling, it must implement this interface and then register an instance with the Transcoder using the transcoder's setErrorHandler method. The transcoder will then report all errors and warnings through this interface. A transcoder shall use this interface instead of throwing an exception: it is up to the application whether to throw an exception for different types of errors and warnings. Note, however, that there is no requirement that the transcoder continue to provide useful information after a call to fatalError (in other words, a transcoder class could catch an exception and report a fatalError).

Most used methods

  • error
    Invoked when an error occured while transcoding.
  • fatalError
    Invoked when an fatal error occured while transcoding.
  • warning
    Invoked when a warning occured while transcoding.

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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