Example usage for org.apache.commons.lang.exception NestableError NestableError

List of usage examples for org.apache.commons.lang.exception NestableError NestableError

Introduction

In this page you can find the example usage for org.apache.commons.lang.exception NestableError NestableError.

Prototype

public NestableError(String msg, Throwable cause) 

Source Link

Document

Constructs a new NestableError with specified detail message and nested Throwable.

Usage

From source file:org.eclipse.wb.internal.swing.laf.ui.LafSelectionItem.java

/**
 * Handles the possibly thrown {@link Throwable} during refresh.
 *//*from  w  ww  . ja  v  a2  s  .  c om*/
private void handleException(Throwable ex) throws NestableError {
    IDesignPageSite site = IDesignPageSite.Helper.getSite(m_componentInfo);
    if (site != null) {
        site.handleException(ex);
    } else {
        throw new NestableError(
                MessageFormat.format(ModelMessages.LafSelectionItem_noDesignPage, m_componentInfo), ex);
    }
}