com.google.code.linkedinapi.client.LinkedInApiClientException Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2010-2011 Nabeel Mukhtar
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.google.code.linkedinapi.client;
import java.util.Date;
/**
* Class description
*
*
*/
public class LinkedInApiClientException extends RuntimeException {
private int statusCode;
private String errorCode;
private Date timestamp;
private String requestId;
/**
*
*/
private static final long serialVersionUID = -4345556572105572685L;
/**
* Constructs ...
*
*/
public LinkedInApiClientException() {
super();
}
/**
* Constructs ...
*
*
* @param message
*/
public LinkedInApiClientException(String message) {
super(message);
}
/**
* Constructs ...
*
*
* @param cause
*/
public LinkedInApiClientException(Throwable cause) {
super(cause);
}
/**
* Constructs ...
*
*
* @param message
* @param cause
*/
public LinkedInApiClientException(String message, Throwable cause) {
super(message, cause);
}
/**
* Constructs ...
*
*
* @param message
* @param cause
*/
public LinkedInApiClientException(String message, int statusCode , String errorCode, Date timestamp, String requestId) {
super(message);
this.statusCode = statusCode;
this.errorCode = errorCode;
this.timestamp = timestamp;
}
/**
* @return the statusCode
*/
public int getStatusCode() {
return statusCode;
}
/**
* @param statusCode the statusCode to set
*/
public void setStatusCode(int statusCode) {
this.statusCode = statusCode;
}
/**
* @return the errorCode
*/
public String getErrorCode() {
return errorCode;
}
/**
* @param errorCode the errorCode to set
*/
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
/**
* @return the timestamp
*/
public Date getTimestamp() {
return timestamp;
}
/**
* @param timestamp the timestamp to set
*/
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
/**
* @return the requestId
*/
public String getRequestId() {
return requestId;
}
/**
* @param requestId the requestId to set
*/
public void setRequestId(String requestId) {
this.requestId = requestId;
}
}