Skip to main content
summaryrefslogtreecommitdiffstats
blob: 2c1ef6ee0ff6726939c07b0f2476239c3d9245ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*******************************************************************************
 * Copyright (c) 2001, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.j2ee.commonarchivecore.internal.exception;



import org.eclipse.jst.j2ee.commonarchivecore.internal.CommonArchiveResourceHandler;

/**
 * Runtime exception used as a way to enforce abstract behavior without declaring the methods
 * abstract. Necessary because impl classes in the etools generated hierarchy cannot be abstract if
 * they have subtypes.
 */
public class SubclassResponsibilityException extends ArchiveRuntimeException {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6815673671775564354L;

	/**
	 * SubclassResponsibilityException constructor comment.
	 */
	public SubclassResponsibilityException() {
		super();
	}

	/**
	 * SubclassResponsibilityException constructor comment.
	 * 
	 * @param s
	 *            java.lang.String
	 */
	public SubclassResponsibilityException(String methodName) {
		super(CommonArchiveResourceHandler.getString(CommonArchiveResourceHandler.subclass_responsibilty_EXC_, (new Object[]{methodName}))); // = " must be implemented in subclass"
	}
}

Back to the top