Herniation of urinary bladder occurs when the urinary bladder or ureter herniates into the inguinal canal, scrotal sac, or femoral canal.