Sometimes a judge makes an error in applying the law, or a prosecutor oversteps their bounds. If this happens in your case, your lawyer can file post-sentence motions and/or a notice of appeal on your behalf.