test_class.file: wdtk-wikibaseapi/src/test/java/org/wikidata/wdtk/wikibaseapi/apierrors/MediaWikiApiErrorHandlerTest.java
test_class.identifier: MediaWikiApiErrorHandlerTest
test_case.body: @Test(expected = TokenErrorException.class)
  	public void testNoTokenError() throws MediaWikiApiErrorException {
  		MediaWikiApiErrorHandler.throwMediaWikiApiErrorException(
  				MediaWikiApiErrorHandler.ERROR_NO_TOKEN, "some message");
  	}
test_case.class_method_signature: MediaWikiApiErrorHandlerTest.testNoTokenError()
test_case.full_signature: @Test(expected = TokenErrorException.class) public void testNoTokenError()
test_case.identifier: testNoTokenError
test_case.invocations: throwMediaWikiApiErrorException
test_case.modifiers: @Test(expected = TokenErrorException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNoTokenError()
focal_class.declarator: ERROR_EDIT_CONFLICT = "editconflict"
focal_class.modifier: public final static
focal_class.original_string: public final static String ERROR_EDIT_CONFLICT = "editconflict";
focal_class.type: String
focal_class.var_name: ERROR_EDIT_CONFLICT
focal_class.declarator: ERROR_NO_TOKEN = "notoken"
focal_class.modifier: public final static
focal_class.original_string: public final static String ERROR_NO_TOKEN = "notoken";
focal_class.type: String
focal_class.var_name: ERROR_NO_TOKEN
focal_class.declarator: ERROR_INVALID_TOKEN = "badtoken"
focal_class.modifier: public final static
focal_class.original_string: public final static String ERROR_INVALID_TOKEN = "badtoken";
focal_class.type: String
focal_class.var_name: ERROR_INVALID_TOKEN
focal_class.declarator: ERROR_NO_SUCH_ENTITY = "no-such-entity"
focal_class.modifier: public final static
focal_class.original_string: public final static String ERROR_NO_SUCH_ENTITY = "no-such-entity";
focal_class.type: String
focal_class.var_name: ERROR_NO_SUCH_ENTITY
focal_class.declarator: ERROR_MAXLAG = "maxlag"
focal_class.modifier: public final static
focal_class.original_string: public final static String ERROR_MAXLAG = "maxlag";
focal_class.type: String
focal_class.var_name: ERROR_MAXLAG
focal_class.declarator: ERROR_ASSERT_USER_FAILED = "assertuserfailed"
focal_class.modifier: public final static
focal_class.original_string: public final static String ERROR_ASSERT_USER_FAILED = "assertuserfailed";
focal_class.type: String
focal_class.var_name: ERROR_ASSERT_USER_FAILED
focal_class.declarator: ERROR_TAGS_APPLY_NOT_ALLOWED = "tags-apply-not-allowed-one"
focal_class.modifier: public final static
focal_class.original_string: public final static String ERROR_TAGS_APPLY_NOT_ALLOWED = "tags-apply-not-allowed-one";
focal_class.type: String
focal_class.var_name: ERROR_TAGS_APPLY_NOT_ALLOWED
focal_class.file: wdtk-wikibaseapi/src/main/java/org/wikidata/wdtk/wikibaseapi/apierrors/MediaWikiApiErrorHandler.java
focal_class.identifier: MediaWikiApiErrorHandler
focal_class.class_method_signature: MediaWikiApiErrorHandler.throwMediaWikiApiErrorException(String errorCode,
  			String errorMessage)
focal_class.full_signature: public static void throwMediaWikiApiErrorException(String errorCode,
  			String errorMessage)
focal_class.identifier: throwMediaWikiApiErrorException
focal_class.modifiers: public static
focal_class.parameters: (String errorCode,
  			String errorMessage)
focal_class.return: void
focal_class.signature: void throwMediaWikiApiErrorException(String errorCode,
  			String errorMessage)
focal_method.body: public static void throwMediaWikiApiErrorException(String errorCode,
  			String errorMessage) throws MediaWikiApiErrorException {
  		switch (errorCode) {
  		case ERROR_NO_TOKEN:
  		case ERROR_INVALID_TOKEN:
  			throw new TokenErrorException(errorCode, errorMessage);
  		case ERROR_EDIT_CONFLICT:
  			throw new EditConflictErrorException(errorMessage);
  		case ERROR_NO_SUCH_ENTITY:
  			throw new NoSuchEntityErrorException(errorMessage);
  		case ERROR_MAXLAG:
  			throw new MaxlagErrorException(errorMessage);
  		case ERROR_ASSERT_USER_FAILED:
  			throw new AssertUserFailedException(errorMessage);
  		case ERROR_TAGS_APPLY_NOT_ALLOWED:
  			throw new TagsApplyNotAllowedException(errorMessage);
  		default:
  			throw new MediaWikiApiErrorException(errorCode, errorMessage);
  		}
  	}
focal_method.class_method_signature: MediaWikiApiErrorHandler.throwMediaWikiApiErrorException(String errorCode,
  			String errorMessage)
focal_method.full_signature: public static void throwMediaWikiApiErrorException(String errorCode,
  			String errorMessage)
focal_method.identifier: throwMediaWikiApiErrorException
focal_method.modifiers: public static
focal_method.parameters: (String errorCode,
  			String errorMessage)
focal_method.return: void
focal_method.signature: void throwMediaWikiApiErrorException(String errorCode,
  			String errorMessage)