Example usage for org.apache.commons.lang3.exception CloneFailedException CloneFailedException

List of usage examples for org.apache.commons.lang3.exception CloneFailedException CloneFailedException

Introduction

In this page you can find the example usage for org.apache.commons.lang3.exception CloneFailedException CloneFailedException.

Prototype

public CloneFailedException(final Throwable cause) 

Source Link

Document

Constructs a CloneFailedException.

Usage

From source file:org.grouplens.lenskit.util.table.TableLayoutBuilder.java

/**
 * Clone this layout command. Used to build multiple layouts from the same initial
 * columns./*from  www.  ja  va  2s.  co  m*/
 *
 * @return An independent copy of this table layout command.
 */
@Override
public TableLayoutBuilder clone() {
    TableLayoutBuilder copy = null;
    try {
        copy = (TableLayoutBuilder) super.clone();
    } catch (CloneNotSupportedException e) {
        throw new CloneFailedException(e);
    }
    copy.columns = new LinkedHashSet<String>(columns);
    return copy;
}

From source file:org.lenskit.util.table.TableLayoutBuilder.java

/**
 * Clone this layout command. Used to build multiple layouts from the same initial
 * columns.//from   www.j  a  va  2 s.co m
 *
 * @return An independent copy of this table layout command.
 */
@Override
public TableLayoutBuilder clone() {
    TableLayoutBuilder copy;
    try {
        copy = (TableLayoutBuilder) super.clone();
    } catch (CloneNotSupportedException e) {
        throw new CloneFailedException(e);
    }
    copy.columns = new LinkedHashSet<>(columns);
    return copy;
}