mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-06-24 22:23:21 +00:00
![SquidDev](/assets/img/avatar_default.png)
- Remove stub for table.pack/table.unpack. - Remove Lua 5.3 bitlib stub. We're not on 5.3, there's no point emulating it. - Change peripheral.call to correctly adjust the error level. This is a terrible hack, but I believe the only good option. It'd be good to remove load as well, but it's a little more complex due to our injecting of _ENV. Closes #363
36 lines
829 B
Java
36 lines
829 B
Java
/*
|
|
* This file is part of ComputerCraft - http://www.computercraft.info
|
|
* Copyright Daniel Ratcliffe, 2011-2020. Do not distribute without permission.
|
|
* Send enquiries to dratcliffe@gmail.com
|
|
*/
|
|
|
|
package dan200.computercraft.core.apis;
|
|
|
|
import dan200.computercraft.api.lua.LuaException;
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
/**
|
|
* A Lua exception which does not contain its stack trace.
|
|
*/
|
|
public class FastLuaException extends LuaException
|
|
{
|
|
private static final long serialVersionUID = 5957864899303561143L;
|
|
|
|
public FastLuaException( @Nullable String message )
|
|
{
|
|
super( message );
|
|
}
|
|
|
|
public FastLuaException( @Nullable String message, int level )
|
|
{
|
|
super( message, level );
|
|
}
|
|
|
|
@Override
|
|
public synchronized Throwable fillInStackTrace()
|
|
{
|
|
return this;
|
|
}
|
|
}
|