2012-01-06 08:55:05 -06:00
|
|
|
/**
|
|
|
|
* This software was developed and / or modified by Raytheon Company,
|
|
|
|
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
|
|
|
*
|
|
|
|
* U.S. EXPORT CONTROLLED TECHNICAL DATA
|
|
|
|
* This software product contains export-restricted data whose
|
|
|
|
* export/transfer/disclosure is restricted by U.S. law. Dissemination
|
|
|
|
* to non-U.S. persons whether in the United States or abroad requires
|
|
|
|
* an export license or other authorization.
|
|
|
|
*
|
|
|
|
* Contractor Name: Raytheon Company
|
|
|
|
* Contractor Address: 6825 Pine Street, Suite 340
|
|
|
|
* Mail Stop B8
|
|
|
|
* Omaha, NE 68106
|
|
|
|
* 402.291.0100
|
|
|
|
*
|
|
|
|
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
|
|
|
* further licensing information.
|
|
|
|
**/
|
|
|
|
package com.raytheon.uf.common.serialization;
|
|
|
|
|
|
|
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
|
|
|
|
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This class is a serializable clone of java.lang.Throwable, use
|
|
|
|
* ExceptionWrapper to convert between the two objects
|
|
|
|
*
|
|
|
|
* <pre>
|
|
|
|
*
|
|
|
|
* SOFTWARE HISTORY
|
|
|
|
* Date Ticket# Engineer Description
|
|
|
|
* ------------ ---------- ----------- --------------------------
|
|
|
|
* Aug 10, 2009 mschenke Initial creation
|
2012-11-01 11:27:02 -05:00
|
|
|
* Sep 14, 2012 1169 djohnson Moved to com.raytheon.uf.common.serialization
|
2012-01-06 08:55:05 -06:00
|
|
|
*
|
|
|
|
* </pre>
|
|
|
|
*
|
|
|
|
* @author mschenke
|
|
|
|
* @version 1.0
|
|
|
|
*/
|
|
|
|
@DynamicSerialize
|
|
|
|
public class SerializableExceptionWrapper implements ISerializableObject {
|
|
|
|
|
|
|
|
@DynamicSerializeElement
|
|
|
|
private StackTraceElement[] stackTrace;
|
|
|
|
|
|
|
|
@DynamicSerializeElement
|
|
|
|
private String message;
|
|
|
|
|
|
|
|
@DynamicSerializeElement
|
|
|
|
private String exceptionClass;
|
|
|
|
|
|
|
|
@DynamicSerializeElement
|
|
|
|
private SerializableExceptionWrapper wrapper;
|
|
|
|
|
|
|
|
public StackTraceElement[] getStackTrace() {
|
|
|
|
return stackTrace;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setStackTrace(StackTraceElement[] stackTrace) {
|
|
|
|
this.stackTrace = stackTrace;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getMessage() {
|
|
|
|
return message;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setMessage(String message) {
|
|
|
|
this.message = message;
|
|
|
|
}
|
|
|
|
|
|
|
|
public SerializableExceptionWrapper getWrapper() {
|
|
|
|
return wrapper;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setWrapper(SerializableExceptionWrapper wrapper) {
|
|
|
|
this.wrapper = wrapper;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getExceptionClass() {
|
|
|
|
return exceptionClass;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setExceptionClass(String exceptionClass) {
|
|
|
|
this.exceptionClass = exceptionClass;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|