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

How to use
org.apache.batik.transcoder.TranscoderException
constructor

Best Java code snippets using org.apache.batik.transcoder.TranscoderException.<init> (Showing top 20 results out of 315)

origin: haraldk/TwelveMonkeys

throw new TranscoderException(ex);
throw new TranscoderException(ex);
TranscoderException exception = new TranscoderException(ex.getMessage());
exception.initCause(ex);
throw exception;
origin: haraldk/TwelveMonkeys

exception = new TranscoderException(ex);
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

  /**
   * 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 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

/**
 * 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: 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: 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: 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: 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: 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: 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: apache/batik

  transcoder.transcode(input, output);
} catch (MalformedURLException e) {
  throw new TranscoderException(e);
} catch (IOException e) {
  throw new TranscoderException(e);
origin: fr.avianey.apache-xmlgraphics/batik

  transcoder.transcode(input, output);
}catch(MalformedURLException e){
  throw new TranscoderException(e);
}catch(IOException e){
  throw new TranscoderException(e);
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: fr.avianey.apache-xmlgraphics/batik

throw new TranscoderException(
  Messages.formatMessage("png.badoutput", null));
throw new TranscoderException(
    "Could not write PNG file because no WriteAdapter is availble");
origin: fr.avianey.apache-xmlgraphics/batik

  } else {
    TranscoderException te;
    te = new TranscoderException
      (Messages.formatMessage("jpeg.unspecifiedQuality", null));
    handler.error(te);
  ostream.flush();
} catch (IOException ex) {
  throw new TranscoderException(ex);
origin: apache/batik

throw new TranscoderException(
    "Could not write TIFF file because no WriteAdapter is availble");
origin: hs-web/hsweb-printer

public PDFPrinter(List<String> svg) throws TranscoderException {
  this.svg = svg;
  graphics = new PDFDocumentGraphics2D(isTextStroked());
  graphics.getPDFDocument().getInfo().setProducer("Apache FOP Version "
      + Version.getVersion()
      + ": PDF Transcoder for Batik");
  if (hints.containsKey(KEY_DEVICE_RESOLUTION)) {
    graphics.setDeviceDPI(getDeviceResolution());
  }
  try {
    Configuration effCfg = getEffectiveConfiguration();
    if (effCfg != null) {
      PDFDocumentGraphics2DConfigurator configurator
          = new PDFDocumentGraphics2DConfigurator();
      boolean useComplexScriptFeatures = false; //TODO - FIX ME
      configurator.configure(graphics, effCfg, useComplexScriptFeatures);
    } else {
      graphics.setupDefaultFontInfo();
    }
    ((FOPTranscoderUserAgent) userAgent).setFontFamilyResolver(
        new FOPFontFamilyResolverImpl(graphics.getFontInfo()));
  } catch (Exception e) {
    throw new TranscoderException(
        "Error while setting up PDFDocumentGraphics2D", e);
  }
}
org.apache.batik.transcoderTranscoderException<init>

Javadoc

Constructs a new transcoder exception with the specified detail message.

Popular methods of TranscoderException

  • getMessage
    Returns the message of this exception. If an error message has been specified, returns that one. Oth
  • printStackTrace
  • getException
    Returns the original enclosed exception or null if any.
  • getLocalizedMessage
  • initCause
  • toString

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Permission (java.security)
    Legacy security code; do not use.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Join (org.hibernate.mapping)
  • 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