comparison core/src/luan/modules/Utils.java @ 578:60c549d43988

remove LuanState.exception()
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Jul 2015 17:40:48 -0600
parents 5e7450ac27f2
children 31926755689e
comparison
equal deleted inserted replaced
577:d7a85fbe15f1 578:60c549d43988
18 18
19 static final int bufSize = 8192; 19 static final int bufSize = 8192;
20 20
21 private static void checkNotNull(LuanState luan,Object v,String expected) throws LuanException { 21 private static void checkNotNull(LuanState luan,Object v,String expected) throws LuanException {
22 if( v == null ) 22 if( v == null )
23 throw luan.exception("bad argument #1 ("+expected+" expected, got nil)"); 23 throw new LuanException(luan,"bad argument #1 ("+expected+" expected, got nil)");
24 } 24 }
25 25
26 public static void checkNotNull(LuanState luan,String s) throws LuanException { 26 public static void checkNotNull(LuanState luan,String s) throws LuanException {
27 checkNotNull(luan,s,"string"); 27 checkNotNull(luan,s,"string");
28 } 28 }