Currently we use many different methods of error handling:
- CorsikaIOException
- enum Status
- INFO, ERROR, FATAL
The main question for designing a error handling API is whether we need to recover from and error.
If we need to recover, we should probably use CorsikaIOException and use try{} as needed.
Otherwise we could just use an assert-like method that prints a message and aborts on error.
Currently we use many different methods of error handling:
The main question for designing a error handling API is whether we need to recover from and error.
If we need to recover, we should probably use CorsikaIOException and use try{} as needed.
Otherwise we could just use an assert-like method that prints a message and aborts on error.