portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r482316 - /portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/JetspeedCapabilities.java
Date Mon, 04 Dec 2006 19:45:47 GMT
Author: taylor
Date: Mon Dec  4 11:45:46 2006
New Revision: 482316

URL: http://svn.apache.org/viewvc?view=rev&rev=482316
Log:
more specific exceptions

Modified:
    portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/JetspeedCapabilities.java

Modified: portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/JetspeedCapabilities.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/JetspeedCapabilities.java?view=diff&rev=482316&r1=482315&r2=482316
==============================================================================
--- portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/JetspeedCapabilities.java
(original)
+++ portals/jetspeed-2/trunk/components/capability/src/java/org/apache/jetspeed/capabilities/impl/JetspeedCapabilities.java
Mon Dec  4 11:45:46 2006
@@ -24,6 +24,7 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.jetspeed.capabilities.Capabilities;
+import org.apache.jetspeed.capabilities.CapabilitiesException;
 import org.apache.jetspeed.capabilities.Capability;
 import org.apache.jetspeed.capabilities.CapabilityMap;
 import org.apache.jetspeed.capabilities.Client;
@@ -785,7 +786,7 @@
      * 
      * @see org.apache.jetspeed.capabilities.Capabilities#storeMediaType(MediaType)
      */
-    public void storeMediaType(MediaType mediaType) throws Exception
+    public void storeMediaType(MediaType mediaType) throws CapabilitiesException
     {
 
     	//TODO: change exception to better indicate cause
@@ -798,7 +799,7 @@
      * @see org.apache.jetspeed.capabilities.Capabilities#deleteMediaType(MediaType)
      */
     public void deleteMediaType(MediaType mediaType)
-            throws Exception
+            throws CapabilitiesException
     {
     	//TODO: change exception to better indicate cause
         getPersistenceBrokerTemplate().delete(mediaType);
@@ -810,7 +811,7 @@
      * 
      * @see org.apache.jetspeed.capabilities.Capabilities#storeCapability(MediaType)
      */
-    public void storeCapability(Capability capability) throws Exception
+    public void storeCapability(Capability capability) throws CapabilitiesException
     {
 
     	//TODO: change exception to better indicate cause
@@ -823,7 +824,7 @@
      * @see org.apache.jetspeed.capabilities.Capabilities#deleteCapability(Capability)
      */
     public void deleteCapability(Capability capability)
-            throws Exception
+            throws CapabilitiesException
     {
     	//TODO: change exception to better indicate cause
         getPersistenceBrokerTemplate().delete(capability);
@@ -834,7 +835,7 @@
      * 
      * @see org.apache.jetspeed.capabilities.Capabilities#storeMimeType(MimeType)
      */
-    public void storeMimeType(MimeType mimeType) throws Exception
+    public void storeMimeType(MimeType mimeType) throws CapabilitiesException
     {
 
     	//TODO: change exception to better indicate cause
@@ -847,7 +848,7 @@
      * @see org.apache.jetspeed.capabilities.Capabilities#deleteMimeType(MimeType)
      */
     public void deleteMimeType(MimeType mimeType)
-            throws Exception
+            throws CapabilitiesException
     {
     	//TODO: change exception to better indicate cause
         getPersistenceBrokerTemplate().delete(mimeType);
@@ -861,7 +862,7 @@
      * 
      * @see org.apache.jetspeed.capabilities.Capabilities#storeClient(MediaType)
      */
-    public void storeClient(Client client) throws Exception
+    public void storeClient(Client client) throws CapabilitiesException
     {
 
     	//TODO: change exception to better indicate cause
@@ -874,7 +875,7 @@
      * @see org.apache.jetspeed.capabilities.Capabilities#deleteClient(Client)
      */
     public void deleteClient(Client client)
-            throws Exception
+            throws CapabilitiesException
     {
     	//TODO: change exception to better indicate cause
         getPersistenceBrokerTemplate().delete(client);



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message