Catch exceptions for invalid platforms and operations