aces / cbrain

CBRAIN is a flexible Ruby on Rails framework for accessing and processing of large data on high-performance computing infrastructures.
GNU General Public License v3.0
71 stars 42 forks source link

Create a new exception class for Scir modules #1265

Open prioux opened 2 years ago

prioux commented 2 years ago

When internal errors happen in Scir modules, the exception generated is usually a plain old RuntimeError.

Create a new ScirError exception class and change all the scir code to raise that instead.

Then in the CbrainTask error handling code, we can detect such errors and not dump the full stack trace inside the task's log.