Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 835 | chris | 1 | package com.gebauz.bauzoid.parser; |
| 2 | |||
| 3 | import com.badlogic.gdx.Gdx; |
||
| 4 | |||
| 5 | /** Exception for errors during scanning process. */ |
||
| 6 | @SuppressWarnings("serial") |
||
| 7 | public class ScanException extends Exception |
||
| 8 | { |
||
| 9 | private String mMessage; |
||
| 10 | private String mCode; |
||
| 11 | |||
| 12 | public ScanException(String message, String code) |
||
| 13 | { |
||
| 14 | mMessage = message; |
||
| 15 | mCode = code; |
||
| 16 | } |
||
| 17 | |||
| 18 | public void log(String logTag) |
||
| 19 | { |
||
| 20 | Gdx.app.log(logTag, mMessage); |
||
| 21 | Gdx.app.log(logTag, "near: " + mCode); |
||
| 22 | } |
||
| 23 | } |