package org.onap.vfc.nfvo.resmanagement.common.util.restclient;
+import java.io.Serializable;
+
/**
* ROA exception handling parameters.
* <br/>
* <p>
* </p>
- *
+ *
* @author
* @version 28-May-2016
*/
-public class ExceptionArgs {
+public class ExceptionArgs implements Serializable{
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -6567319637044813966L;
/**
* Exception descriptions.
* Constructor<br/>
* <p>
* </p>
- *
+ *
* @since
*/
public ExceptionArgs() {
* Constructor<br/>
* <p>
* </p>
- *
+ *
* @since
* @param descArgs: descriptions.
* @param reasonArgs: reasons.
}
} catch(InterruptedException e) {
LOG.error("InterruptedException", e);
+ // Restore interrupted state...
+ Thread.currentThread().interrupt();
} catch(UnsupportedEncodingException e) {
LOG.error("UnsupportedEncodingException", e);
}
}
} catch(InterruptedException e) {
LOG.error("InterruptedException", e);
+ // Restore interrupted state...
+ Thread.currentThread().interrupt();
} catch(UnsupportedEncodingException e) {
LOG.error("InterruptedException", e);
}
* The base class for all common exception.<br/>
* <p>
* </p>
- *
+ *
* @author
* @version 28-May-2016
*/
*/
private String id = DEFAULT_ID;
- private Object[] args = null;
+ private Object[] args = null; // NOSONAR
private int httpCode = 500;
* <p>
* This method is only used as deserialized, in other cases, use parameterized constructor.
* </p>
- *
+ *
* @since
*/
public ServiceException() {
* Constructor<br/>
* <p>
* </p>
- *
+ *
* @since
* @param id: details.
* @param cause: reason.
* Constructor<br/>
* <p>
* </p>
- *
+ *
* @since
* @param message: details.
*/
* Constructor<br/>
* <p>
* </p>
- *
+ *
* @since
* @param id: exception id.
* @param message: details.
* Constructor<br/>
* <p>
* </p>
- *
+ *
* @since
* @param id: exception id.
* @param httpCode: http status code.
* <p>
* the exception include the httpcode and message.
* </p>
- *
+ *
* @since
* @param httpCode http code.
* @param message details.
* Constructor<br/>
* <p>
* </p>
- *
+ *
* @since
* @param id: exception id.
* @param httpCode: http code.
* <p>
* Have a placeholder exception, use args formatted message.
* </p>
- *
+ *
* @since
* @param id: exception id.
* @param message: details.
* <p>
* Have a placeholder exception, use args formatted message
* </p>
- *
+ *
* @since
* @param id: exception id.
* @param message: details.
* Constructor<br/>
* <p>
* </p>
- *
+ *
* @since
* @param id: exception id.
* @param message: details.
* Constructor<br/>
* <p>
* </p>
- *
+ *
* @since
* @param cause: reason.
*/
/**
* Get exceptoin id.<br/>
- *
+ *
* @return
* @since
*/
/**
* Obtain the ROA exception handling framework parameters<br/>
- *
+ *
* @return exception args.
* @since
*/
/**
* Gets the parameter information<br/>
- *
+ *
* @return parameter list.
* @since
*/