blob: f1c3a0d02bc079f7ea363b24d9922f2accd95f04 [file] [log] [blame]
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v05.html
*
* Contributors:
* IBM Rational Software - Initial API and implementation
***********************************************************************/
package org.eclipse.cdt.core.parser;
/**
* @author jcamelon
*
*/
public class ParserFactoryException extends Exception {
public static class Kind extends Enum {
public static final Kind NULL_READER = new Kind( 1 );
public static final Kind NULL_FILENAME = new Kind( 2 );
public static final Kind NULL_CONFIG = new Kind( 3 );
public static final Kind NULL_LANGUAGE = new Kind( 4 );
public static final Kind NULL_SCANNER = new Kind( 5 );
protected Kind( int arg )
{
super( arg );
}
}
public ParserFactoryException( Kind e )
{
kind = e;
}
public Kind getKind()
{
return kind;
}
private Kind kind;
}