migrated exceptions to both GUI and command-line interfaces.