1 /*
2  * Created on 26-Jul-2004
3  * Created by Paul Gardner
4  * Copyright (C) Azureus Software, Inc, All Rights Reserved.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  *
18  */
19 
20 package org.gudy.azureus2.core3.internat;
21 
22 /**
23  * @author parg
24  *
25  */
26 
27 public class
28 LocaleUtilEncodingException
29 	extends Exception
30 {
31 	protected String[]		valid_charsets;
32 	protected String[]		valid_names;
33 
34 	protected boolean		abandoned;
35 
36 	public
LocaleUtilEncodingException( String[] charsets, String[] names )37 	LocaleUtilEncodingException(
38 		String[]		charsets,
39 		String[]		names )
40 	{
41 		valid_charsets	= charsets;
42 		valid_names		= names;
43 	}
44 
45 	public
LocaleUtilEncodingException( Throwable cause )46 	LocaleUtilEncodingException(
47 		Throwable	cause )
48 	{
49 		super( cause );
50 	}
51 
52 	public
LocaleUtilEncodingException( boolean _abandoned )53 	LocaleUtilEncodingException(
54 		boolean		_abandoned )
55 	{
56 		super( "Locale selection abandoned" );
57 
58 		abandoned	= _abandoned;
59 	}
60 
61 	public boolean
getAbandoned()62 	getAbandoned()
63 	{
64 		return( abandoned );
65 	}
66 
67 	public String[]
getValidCharsets()68 	getValidCharsets()
69 	{
70 		return( valid_charsets );
71 	}
72 
73 	public String[]
getValidTorrentNames()74 	getValidTorrentNames()
75 	{
76 		return( valid_names );
77 	}
78 }
79