|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.waterken.syntax.WrongToken
public class WrongToken
Signals parsed data did not contain an expected token at a required position.
| Field Summary | |
|---|---|
java.lang.String |
expected
expected token |
| Constructor Summary | |
|---|---|
WrongToken(java.lang.String expected)
Constructs an instance. |
|
| Method Summary | |
|---|---|
static void |
require(java.lang.String expected,
java.lang.String actual)
Requires a token to have an expected value. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String expected
| Constructor Detail |
|---|
public WrongToken(java.lang.String expected)
expected - expected| Method Detail |
|---|
public static void require(java.lang.String expected,
java.lang.String actual)
throws WrongToken
expected - expected tokenactual - actual token
WrongToken - actual is not expected
|
ref_send API 2.17 defensive programming in Java |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.