DAO Layer Implementation

4.x.x
manoj 10 years ago
parent 1e6d06027d
commit fd55faaf2e

@ -21,7 +21,7 @@ package org.wso2.carbon.device.mgt.core.dao.exception;
/** /**
* Custom exception class for data access related exceptions * Custom exception class for data access related exceptions
*/ */
public class CDMDAOException extends Exception { public class DeviceDAOException extends Exception {
private String message; private String message;
private static final long serialVersionUID = 2021891706072918864L; private static final long serialVersionUID = 2021891706072918864L;
@ -32,7 +32,7 @@ public class CDMDAOException extends Exception {
* @param message error message * @param message error message
* @param nestedException exception * @param nestedException exception
*/ */
public CDMDAOException(String message, Exception nestedException) { public DeviceDAOException(String message, Exception nestedException) {
super(message, nestedException); super(message, nestedException);
setErrorMessage(message); setErrorMessage(message);
} }
@ -43,7 +43,7 @@ public class CDMDAOException extends Exception {
* @param message the detail message. * @param message the detail message.
* @param cause the cause of this exception. * @param cause the cause of this exception.
*/ */
public CDMDAOException(String message, Throwable cause) { public DeviceDAOException(String message, Throwable cause) {
super(message, cause); super(message, cause);
setErrorMessage(message); setErrorMessage(message);
} }
@ -53,7 +53,7 @@ public class CDMDAOException extends Exception {
* *
* @param message the detail message. * @param message the detail message.
*/ */
public CDMDAOException(String message) { public DeviceDAOException(String message) {
super(message); super(message);
setErrorMessage(message); setErrorMessage(message);
} }
@ -63,7 +63,7 @@ public class CDMDAOException extends Exception {
* *
* @param cause the cause of this exception. * @param cause the cause of this exception.
*/ */
public CDMDAOException(Throwable cause) { public DeviceDAOException(Throwable cause) {
super(cause); super(cause);
} }

@ -17,7 +17,7 @@
*/ */
package org.wso2.carbon.device.mgt.core.dao.exception; package org.wso2.carbon.device.mgt.core.dao.exception;
public class CDMDatabaseConnectionException extends Exception { public class DeviceDatabaseConnectionException extends Exception {
private String message; private String message;
@ -27,7 +27,7 @@ public class CDMDatabaseConnectionException extends Exception {
* @param message error message * @param message error message
* @param nestedException exception * @param nestedException exception
*/ */
public CDMDatabaseConnectionException(String message, Exception nestedException) { public DeviceDatabaseConnectionException(String message, Exception nestedException) {
super(message, nestedException); super(message, nestedException);
setErrorMessage(message); setErrorMessage(message);
} }
@ -38,7 +38,7 @@ public class CDMDatabaseConnectionException extends Exception {
* @param message the detail message. * @param message the detail message.
* @param cause the cause of this exception. * @param cause the cause of this exception.
*/ */
public CDMDatabaseConnectionException(String message, Throwable cause) { public DeviceDatabaseConnectionException(String message, Throwable cause) {
super(message, cause); super(message, cause);
setErrorMessage(message); setErrorMessage(message);
} }
@ -48,7 +48,7 @@ public class CDMDatabaseConnectionException extends Exception {
* *
* @param message the detail message. * @param message the detail message.
*/ */
public CDMDatabaseConnectionException(String message) { public DeviceDatabaseConnectionException(String message) {
super(message); super(message);
setErrorMessage(message); setErrorMessage(message);
} }
@ -58,7 +58,7 @@ public class CDMDatabaseConnectionException extends Exception {
* *
* @param cause the cause of this exception. * @param cause the cause of this exception.
*/ */
public CDMDatabaseConnectionException(Throwable cause) { public DeviceDatabaseConnectionException(Throwable cause) {
super(cause); super(cause);
} }
Loading…
Cancel
Save