*/
package uk.ac.vamsas.client;
-import java.io.File;
import java.net.URI;
import java.util.Hashtable;
-import java.util.Vector;
/**
* @author jimp
}
/**
- * Set arun attribute
+ * Set the urn attribute
* create a URI from the provided String
*
* @param urnString urn to convert to a URN
*/
- protected void setURN(String urnString) throws NullPointerException, IllegalArgumentException
+ protected void setURN(String urnString) throws InvalidSessionUrnException// NullPointerException, IllegalArgumentException
{
- this.urn = URI.create(urnString);
+ try {
+ this.urn = URI.create(urnString);
+ } catch (Exception e) {
+ throw new InvalidSessionUrnException(e);
+ }
}
}