File tree Expand file tree Collapse file tree
src/main/java/com/scriptbasic/utility/functions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ static public Long clng(final Object arg) throws BasicRuntimeException {
176176 @ BasicFunction (classification = Utility .class )
177177 static public String chr (final Object charcode ) throws BasicRuntimeException {
178178 if (charcode == null ) {
179- throw new BasicRuntimeException ("undef cannot be converted character" );
179+ throw new BasicRuntimeException ("undef cannot be converted to character" );
180180 }
181181 final Long code = BasicLongValue .asLong (RightValueUtility .createRightValue (charcode ));
182182 try {
@@ -193,6 +193,8 @@ static public String chr(final Object charcode) throws BasicRuntimeException {
193193 * @param arg
194194 * string argument
195195 * @return character code corresponding to the first letter
196+ * @throws BasicRuntimeException
197+ * fail on empty input
196198 */
197199 @ BasicFunction (classification = Utility .class )
198200 static public Integer asc (final Object arg ) throws BasicRuntimeException {
You can’t perform that action at this time.
0 commit comments