Adding exception class for invalid commands