Example usage for java.lang CloneNotSupportedException getCause

List of usage examples for java.lang CloneNotSupportedException getCause

Introduction

In this page you can find the example usage for java.lang CloneNotSupportedException getCause.

Prototype

public synchronized Throwable getCause() 

Source Link

Document

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Usage

From source file:com.silverpeas.notification.model.NotificationResourceData.java

@Override
public NotificationResourceData clone() {
    NotificationResourceData clone;/*from   www. j ava 2s  .  c  o m*/
    try {
        clone = (NotificationResourceData) super.clone();
        clone.setId(null);
    } catch (final CloneNotSupportedException e) {
        throw new RuntimeException(e.getCause());
    }
    return clone;
}