In violation of a moral or other standard, code, or convention; in an unfair, unjust, dishonest, or immoral manner; unfairly, unjustly, dishonestly, immorally, wrongfully; wrongly convicted is synonymous with wrongful conviction and miscarriage of justice.
Incorrectly, mistakenly; by error.