1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/rt/emul/compact/src/main/java/java/nio/charset/IllegalCharsetNameException.java Thu Oct 03 15:40:35 2013 +0200
1.3 @@ -0,0 +1,68 @@
1.4 +/*
1.5 + * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
1.6 + *
1.7 + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
1.8 + *
1.9 + *
1.10 + *
1.11 + *
1.12 + *
1.13 + *
1.14 + *
1.15 + *
1.16 + *
1.17 + *
1.18 + *
1.19 + *
1.20 + *
1.21 + *
1.22 + *
1.23 + *
1.24 + *
1.25 + *
1.26 + *
1.27 + *
1.28 + *
1.29 + */
1.30 +
1.31 +// -- This file was mechanically generated: Do not edit! -- //
1.32 +
1.33 +package java.nio.charset;
1.34 +
1.35 +
1.36 +/**
1.37 + * Unchecked exception thrown when a string that is not a
1.38 + * <a href=Charset.html#names>legal charset name</a> is used as such.
1.39 + *
1.40 + * @since 1.4
1.41 + */
1.42 +
1.43 +public class IllegalCharsetNameException
1.44 + extends IllegalArgumentException
1.45 +{
1.46 +
1.47 + private static final long serialVersionUID = 1457525358470002989L;
1.48 +
1.49 + private String charsetName;
1.50 +
1.51 + /**
1.52 + * Constructs an instance of this class. </p>
1.53 + *
1.54 + * @param charsetName
1.55 + * The illegal charset name
1.56 + */
1.57 + public IllegalCharsetNameException(String charsetName) {
1.58 + super(String.valueOf(charsetName));
1.59 + this.charsetName = charsetName;
1.60 + }
1.61 +
1.62 + /**
1.63 + * Retrieves the illegal charset name. </p>
1.64 + *
1.65 + * @return The illegal charset name
1.66 + */
1.67 + public String getCharsetName() {
1.68 + return charsetName;
1.69 + }
1.70 +
1.71 +}