Mercurial Hosting > luan
comparison src/luan/LuanException.java @ 781:fbbdd369a13a
rename DeepCloner to LuanCloner
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 29 Aug 2016 22:49:32 -0600 |
parents | 1a68fc55a80c |
children | 655280eab1e2 |
comparison
equal
deleted
inserted
replaced
780:6a87d51ae0ed | 781:fbbdd369a13a |
---|---|
4 import java.io.PrintWriter; | 4 import java.io.PrintWriter; |
5 import java.util.List; | 5 import java.util.List; |
6 import java.util.ArrayList; | 6 import java.util.ArrayList; |
7 | 7 |
8 | 8 |
9 public final class LuanException extends Exception implements DeepCloneable { | 9 public final class LuanException extends Exception implements LuanCloneable { |
10 private LuanTable table; | 10 private LuanTable table; |
11 | 11 |
12 public LuanException(String msg,Throwable cause) { | 12 public LuanException(String msg,Throwable cause) { |
13 super(msg,cause); | 13 super(msg,cause); |
14 initTable(); | 14 initTable(); |
30 | 30 |
31 @Override public LuanException shallowClone() { | 31 @Override public LuanException shallowClone() { |
32 return new LuanException(getMessage(),getCause(),99); | 32 return new LuanException(getMessage(),getCause(),99); |
33 } | 33 } |
34 | 34 |
35 @Override public void deepenClone(DeepCloneable dc,DeepCloner cloner) { | 35 @Override public void deepenClone(LuanCloneable dc,LuanCloner cloner) { |
36 LuanException clone = (LuanException)dc; | 36 LuanException clone = (LuanException)dc; |
37 clone.table = (LuanTable)cloner.get(table); | 37 clone.table = (LuanTable)cloner.get(table); |
38 } | 38 } |
39 | 39 |
40 public LuanTable table() { | 40 public LuanTable table() { |