Project

General

Profile

« Previous | Next » 

Revision 6223

throw exception for unimplemented methods

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
231 231
	 * @throws NotFound
232 232
	 */
233 233
	@Override
234
	/*public boolean updateNodeCapabilities(Session session, NodeReference nodeid, Node node) */
235 234
	public boolean addNodeCapabilities(Session session, NodeReference nodeid, Node node)
236 235
	  throws NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest,
237 236
	  NotFound {
238 237

  
239
		return false;
238
		throw new NotImplemented("4820", "addNodeCapabilities not implemented");
240 239
	}
241 240

  
242 241
	/**
......
437 436
	  throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest,
438 437
	  NotImplemented {
439 438

  
440
		return null;
439
		throw new NotImplemented("4281", "search not implemented");
440

  
441 441
	}
442 442

  
443 443
	/**
......
468 468
	  UnsupportedType, InsufficientResources, InvalidSystemMetadata, 
469 469
	  NotImplemented, InvalidRequest {
470 470

  
471
		return null;
471
		throw new NotImplemented("4890", "create not implemented");
472 472
	}
473 473
	
474 474
	/**
......
527 527
	public NodeList listNodes() 
528 528
	  throws NotImplemented, ServiceFailure {
529 529

  
530
		return null;
530
		throw new NotImplemented("4800", "listNodes not implemented");
531 531
	}
532 532

  
533 533
	/**
......
627 627
	  throws InvalidToken, ServiceFailure, NotAuthorized, IdentifierNotUnique, 
628 628
	  NotImplemented, InvalidRequest {
629 629

  
630
		return null;
630
		throw new NotImplemented("4191", "reserveIdentifier not implemented");
631

  
631 632
	}
632 633

  
633 634
	/**

Also available in: Unified diff