All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.closurecompiler.ClosureCompilationException Maven / Gradle / Ivy

There is a newer version: 10.2.0
Show newest version
package org.wicketstuff.closurecompiler;

import java.util.Collections;
import java.util.List;

import org.apache.wicket.util.lang.Args;

import com.google.javascript.jscomp.JSError;

public class ClosureCompilationException extends Exception
{
	private static final long serialVersionUID = 1L;
	private final List errors;

	public ClosureCompilationException(List errors)
	{
		this.errors = Collections.unmodifiableList(Args.notNull(errors, "errors"));
	}

	public List getErrors()
	{
		return errors;
	}

	@Override
	public String toString()
	{
		final StringBuilder sb = new StringBuilder();
		sb.append("ClosureCompilerCompilationException");
		sb.append("{errors=").append(errors);
		sb.append('}');
		return sb.toString();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy