Example usage for java.net MalformedURLException fillInStackTrace

List of usage examples for java.net MalformedURLException fillInStackTrace

Introduction

In this page you can find the example usage for java.net MalformedURLException fillInStackTrace.

Prototype

public synchronized Throwable fillInStackTrace() 

Source Link

Document

Fills in the execution stack trace.

Usage

From source file:org.pmedv.core.components.RelativeImageView.java

/**
 * Method returns a URL for the image source, or null if it could not be
 * determined//  w ww  .j a  v  a 2  s  .  c  o m
 * 
 * @returns a URL for the image source or null if it could not be
 *          determined.
 */
private URL getSourceURL() {

    String src = (String) fElement.getAttributes().getAttribute(HTML.Attribute.SRC);
    if (src == null)
        return null;

    URL reference = ((HTMLDocument) getDocument()).getBase();
    try {
        URL u = new URL(reference, src);
        return u;
    } catch (MalformedURLException mue) {
        log.warn("malformed URL: " + mue.fillInStackTrace());
        return null;
    }
}