Skip to content

Commit

Permalink
Create testErrorPlumber.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecilsingh authored Oct 14, 2024
1 parent 5225ea0 commit 0184d99
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions API/testErrorPlumber.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
library(plumber)
#* @apiTitle TestModelWithErrorMessage

#* Predict on input values
#* @post /predict
#* @param request:list
model.predict <- function(request) {

stop('An error occured!')

}

0 comments on commit 0184d99

Please sign in to comment.