*Ellie’s attack leads to Joe’s confession getting tossed, which is unconscionable.*

Source: <http://www.avclub.com/tvclub/broadchurch-season-two-episode-two-216332>

I am not sure how to understand the phrase "getting tossed". Is the meaning of the sentence this: Because Ellie (as the police officer) insulted Joe his confession is open to doubt? (I deduce the meaning on the basis of my knowledge of the plot of TV series Broadchurch.)