Easily define and raise localized errors