Package java.lang

Examples of java.lang.AssertionError


                mVal = new String(mArgs[++mArgNum]);
            }
            return cc.charValue();

        default:
            throw new AssertionError("Unknown valueExpected state");

        }

    } finally {
        mArgNum++;
View Full Code Here


* used.
*/
public void registerOpt(char c, String s, ValueExpected ve)
{
    if (c == '-') {
        throw new AssertionError("CmdLineParser:  '-' is not a legal single character designator.");
    }

    Character cc = Character.valueOf(c);
    if (mShort.put(cc, ve) != null) {
        throw new AssertionError("CmdLineParser:  You have already registered option " + cc.toString());
    }

    if (mLong != null) {
        if (mLong.put(s, cc) != null) {
            throw new AssertionError("CmdLineParser:  You have already registered option " + s);
        }
    }
}
View Full Code Here

                mVal = mArgs[++mArgNum];
            }
            return cc.charValue();

        default:
            throw new AssertionError("Unknown valueExpected state");

        }

    } finally {
        mArgNum++;
View Full Code Here

                    {
                        System.err.printf("Error while reading Super Column %s key %s - %s%n", superColumn, ByteBufferUtil.string(key), getExceptionMessage(e));
                    }
                    catch (CharacterCodingException e1)
                    {
                        throw new AssertionError(e1); // keys are valid string
                    }

                    if (!session.ignoreErrors())
                        break;
                }
View Full Code Here

* used.
*/
public void registerOpt(char c, String s, ValueExpected ve)
{
    if (c == '-') {
        throw new AssertionError("CmdLineParser:  '-' is not a legal single character designator.");
    }

    Character cc = new Character(c);
    if (mShort.put(cc, ve) != null) {
        throw new AssertionError("CmdLineParser:  You have already registered option " + cc.toString());
    }

    if (mLong != null) {
        if (mLong.put(s, cc) != null) {
            throw new AssertionError("CmdLineParser:  You have already registered option " + s);
        }
    }
}
View Full Code Here

                mVal = new String(mArgs[++mArgNum]);
            }
            return cc.charValue();

        default:
            throw new AssertionError("Unknown valueExpected state");

        }

    } finally {
        mArgNum++;
View Full Code Here

* used.
*/
public void registerOpt(char c, String s, ValueExpected ve)
{
    if (c == '-') {
        throw new AssertionError("CmdLineParser:  '-' is not a legal single character designator.");
    }

    Character cc = new Character(c);
    if (mShort.put(cc, ve) != null) {
        throw new AssertionError("CmdLineParser:  You have already registered option " + cc.toString());
    }

    if (mLong != null) {
        if (mLong.put(s, cc) != null) {
            throw new AssertionError("CmdLineParser:  You have already registered option " + s);
        }
    }
}
View Full Code Here

                mVal = new String(mArgs[++mArgNum]);
            }
            return cc.charValue();

        default:
            throw new AssertionError("Unknown valueExpected state");

        }

    } finally {
        mArgNum++;
View Full Code Here

   * @throws AssertionError if any.
   */
  public static void assertMinimizeNotPossible( @NotNull List<? extends Module> modules, @NotNull Key<?>... keys ) throws AssertionError {
    GuiceModulesHelper.Result minimal = minimize( modules, keys );
    if ( !minimal.getRemoved().isEmpty() ) {
      throw new AssertionError( "Can be minimized:\nRemove:\n" + minimal.getRemovedClassNamesAsString() + minimal.asInstantiations() );
    }
  }
View Full Code Here

TOP

Related Classes of java.lang.AssertionError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.