Use exceptions to handle errors in the KDM CLI.