Project

General

Profile

« Previous | Next » 

Revision 6622

upgrade to 1.0.1-SNAPSHOT DataONE jars

View differences:

ObjectFormatService.java
97 97
	 * @return objectFormat - the desired object format
98 98
	 */
99 99
	public ObjectFormat getFormat(ObjectFormatIdentifier fmtid)
100
			throws InvalidRequest, ServiceFailure, NotFound,
100
			throws ServiceFailure, NotFound,
101 101
			InsufficientResources, NotImplemented {
102 102

  
103 103
		logMetacat.debug("CNCoreImpl.getFormat() called.");
......
129 129
	 * 
130 130
	 * @return objectFormatList - the list of object formats
131 131
	 */
132
	public ObjectFormatList listFormats() throws InvalidRequest,
133
			ServiceFailure, NotFound, InsufficientResources, NotImplemented {
132
	public ObjectFormatList listFormats() throws ServiceFailure, InsufficientResources, NotImplemented {
134 133

  
135 134
		objectFormatList = getCachedList();
136 135

  
......
155 154
	/**
156 155
	 * Get the object format list cached in Metacat
157 156
	 */
158
	private ObjectFormatList getCachedList() throws NotFound, ServiceFailure {
157
	private ObjectFormatList getCachedList() throws ServiceFailure {
159 158

  
160 159
		ObjectFormatList objectFormatList = null;
161 160

  
......
217 216
				}
218 217

  
219 218
			} else {
220
				throw new NotFound("4843",
219
				throw new ServiceFailure("4841",
221 220
						"The object formats collection could not "
222 221
								+ "be found at this node.");
223 222
			}

Also available in: Unified diff