Fixed exception class to PlatformDAOException

feature/appm-store/pbac
Chatura Dilan 8 years ago
parent 52b2739bee
commit ac871fdbce

@ -26,7 +26,7 @@ import java.util.List;
public interface PlatformDAO { public interface PlatformDAO {
public Platform getPlatformByIdentifier(String identifier) throws ApplicationManagementDAOException; public Platform getPlatformByIdentifier(String identifier) throws PlatformManagementDAOException;
void register(String tenantDomain, Platform platform) throws PlatformManagementDAOException; void register(String tenantDomain, Platform platform) throws PlatformManagementDAOException;

@ -38,7 +38,7 @@ import java.util.List;
public class GenericPlatformDAOImpl extends AbstractDAOImpl implements PlatformDAO { public class GenericPlatformDAOImpl extends AbstractDAOImpl implements PlatformDAO {
@Override @Override
public Platform getPlatformByIdentifier(String identifier) throws ApplicationManagementDAOException { public Platform getPlatformByIdentifier(String identifier) throws PlatformManagementDAOException {
Connection conn = null; Connection conn = null;
PreparedStatement stmt = null; PreparedStatement stmt = null;
@ -68,9 +68,9 @@ public class GenericPlatformDAOImpl extends AbstractDAOImpl implements PlatformD
return platform; return platform;
} catch (SQLException e) { } catch (SQLException e) {
throw new ApplicationManagementDAOException("Error occurred while getting application List", e); throw new PlatformManagementDAOException("Error occurred while getting application List", e);
} catch (DBConnectionException e) { } catch (DBConnectionException e) {
throw new ApplicationManagementDAOException("Error occurred while obtaining the DB connection.", e); throw new PlatformManagementDAOException("Error occurred while obtaining the DB connection.", e);
} finally { } finally {
Util.cleanupResources(stmt, rs); Util.cleanupResources(stmt, rs);
} }

Loading…
Cancel
Save