public class ReplError extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
line
The line the error occurred on.
|
String |
msg
The message of the error.
|
int |
numPairs
The number of pairs we have processed so far.
|
String |
txt
The text of the line we errored on.
|
| Constructor and Description |
|---|
ReplError(IntHolder lne,
IntHolder nPairs,
String msg,
String txt)
Create a new ReplPair parse error.
|
ReplError(int lne,
int nPairs,
String msg,
String txt)
Create a new ReplPair parse error.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toPrintString()
Convert the error to a printable string.
|
String |
toPrintString(String hdr)
Convert the error to a printable string, with a custom header.
|
String |
toString() |
public int line
public int numPairs
public String txt
public String msg
public ReplError(IntHolder lne, IntHolder nPairs, String msg, String txt)
lne - The line the error occured on.nPairs - The number of pairs processed up to this point.msg - The message detailing the error.txt - The text that caused the error.public String toPrintString()
Copyright © 2020. All rights reserved.