Qualified Immunity (Comment only) is a legal doctrine that shields public officials from being held personally liable for constitutional violations that occur in the course of their official duties. This doctrine is derived from the common law doctrine of sovereign immunity, which was created to protect government officials from frivolous lawsuits. Qualified immunity applies to both civil and criminal cases and is meant to protect public officials from personal liability, provided that their actions were reasonable and that they did not violate any clearly established laws. There are two types of qualified immunity: absolute and qualified. Absolute immunity applies to certain types of government actions, such as prosecutorial discretion, while qualified immunity applies to all other types of government actions.