Preserve the stack trace when CloneNotSupportedException impossibly happens.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@21 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -146,7 +146,7 @@ public abstract class GameConfig extends PlaceConfig implements Cloneable
|
||||
try {
|
||||
return super.clone();
|
||||
} catch (CloneNotSupportedException cnse) {
|
||||
throw new RuntimeException("clone() failed: " + cnse);
|
||||
throw new RuntimeException(cnse);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public abstract class Board
|
||||
board._rando = (BoardRandom)_rando.clone();
|
||||
return board;
|
||||
} catch (CloneNotSupportedException cnse) {
|
||||
throw new RuntimeException("All is wrong with universe.");
|
||||
throw new RuntimeException(cnse);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ public abstract class Board
|
||||
try {
|
||||
return super.clone();
|
||||
} catch (CloneNotSupportedException cnse) {
|
||||
throw new RuntimeException("All is wrong with universe.");
|
||||
throw new RuntimeException(cnse);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ public class StageLocation extends SimpleStreamableObject
|
||||
try {
|
||||
return (StageLocation)super.clone();
|
||||
} catch (CloneNotSupportedException cnse) {
|
||||
throw new RuntimeException("StageLocation.clone() failed " + cnse);
|
||||
throw new RuntimeException(cnse);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,9 +90,9 @@ public class Portal extends SimpleStreamableObject
|
||||
public Object clone ()
|
||||
{
|
||||
try {
|
||||
return (Portal)super.clone();
|
||||
return super.clone();
|
||||
} catch (CloneNotSupportedException cnse) {
|
||||
throw new RuntimeException("Portal.clone() failed " + cnse);
|
||||
throw new RuntimeException(cnse);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user