Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
b74509bd
Commit
b74509bd
authored
11 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
add wrong argument type error
parent
0a0d3567
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RError.java
+13
-0
13 additions, 0 deletions
...le.r.runtime/src/com/oracle/truffle/r/runtime/RError.java
with
13 additions
and
0 deletions
com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RError.java
+
13
−
0
View file @
b74509bd
...
...
@@ -47,6 +47,7 @@ public abstract class RError extends RuntimeException {
public
static
final
String
INVALID_TIMES
=
"invalid 'times' argument"
;
public
static
final
String
INVALID_TFB
=
"invalid (to - from)/by in seq(.)"
;
public
static
final
String
WRONG_SIGN_IN_BY
=
"wrong sign in 'by' argument"
;
public
static
final
String
WRONG_TYPE
=
"wrong type of argument"
;
public
static
final
String
BY_TOO_SMALL
=
"'by' argument is much too small"
;
public
static
final
String
INCORRECT_SUBSCRIPTS
=
"incorrect number of subscripts"
;
public
static
final
String
INCORRECT_SUBSCRIPTS_MATRIX
=
"incorrect number of subscripts on a matrix"
;
...
...
@@ -495,6 +496,18 @@ public abstract class RError extends RuntimeException {
};
}
public
static
RError
getWrongTypeOfArgument
(
SourceSection
expr
)
{
return
new
RErrorInExpr
(
expr
)
{
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
String
getMessage
()
{
return
RError
.
WRONG_TYPE
;
}
};
}
public
static
RError
getByTooSmall
(
SourceSection
expr
)
{
return
new
RErrorInExpr
(
expr
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment