blob: 6f91719c9498fd2aacb3ae90fee90011698d17bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#for testing the error handling
module OpenTox
class Application < Service
post '/dataset/test/error_in_task/?' do
task = OpenTox::Task.run("error_in_task", @uri, @subjectid) do |task|
sleep 1
internal_server_error "error_in_task_message"
end
response['Content-Type'] = 'text/uri-list'
halt 202,task.uri.to_s+"\n"
end
end
end
|