Naughty child having time out for wrongdoing (5)
I believe the answer is:
error
'for wrongdoing' is the definition.
(synonyms)
I can't explain the remainder of the clue.
Can you help me to learn more?
(Other definitions for error that I've seen before include "Way of operating" , "Mistake, lapse" , "heresy" , "Boo-boo" , "1 down" .)