SCM

[#5943] Improve the Exception text when the target column doesn't exist

Date:
2014-10-06 16:15
Priority:
3
State:
Closed
Submitted by:
MIC B (pommedeterre)
Assigned to:
Martin Atzmueller (atzmueller)
Summary:
Improve the Exception text when the target column doesn't exist

Detailed description
If I start a search on a column not existing, I get the following exception:
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "newInstance", .jfindClass(class), :
java.lang.IllegalArgumentException: Attribute is null!
Called from: eval(substitute(browser(skipCalls = pos), list(pos = 9 - frame)),
envir = sys.frame(frame))
Browse[1]>

The error message from Java doesn't make reference to the real issue, it just describes that an object is null (which is probably the consequence of the column not found).

The message Attribute is null! should be changed to something like:
java.lang.IllegalArgumentException: The column XXX is not present in the current dataset // There is no value YYY in the column XXX.

Add A Comment: Notepad

Comments:

Message  ↓
Date: 2020-04-19 17:49
Sender: Martin Atzmueller

fixed.

Attached Files:

Changes

Field Old Value Date By
status_idOpen2020-04-19 17:49atzmueller
close_dateNone2020-04-19 17:49atzmueller
assigned_tonone2014-10-13 02:12atzmueller
Thanks to:
Vienna University of Economics and Business Powered By FusionForge