blob: 612efd0ee5521f45b387867817d115769b95134e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2004 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
* Jens Lukowski/Innoopract - initial renaming/restructuring
*
*******************************************************************************/
package org.eclipse.wst.xml.core.document;
/**
* Thrown an invalid character is specified in : XMLNode#setSource(String)
*/
public class InvalidCharacterException extends Exception {
/**
* Default <code>serialVersionUID</code>
*/
private static final long serialVersionUID = 1L;
private char invalidChar = 0;
private int offset = -1;
/**
*/
public InvalidCharacterException() {
super();
}
/**
*/
public InvalidCharacterException(String s) {
super(s);
}
/**
*/
public InvalidCharacterException(String s, char c) {
super(s);
this.invalidChar = c;
}
/**
*/
public InvalidCharacterException(String s, char c, int offset) {
super(s);
this.invalidChar = c;
this.offset = offset;
}
/**
*/
public char getInvalidChar() {
return this.invalidChar;
}
/**
*/
public int getOffset() {
return this.offset;
}
}