title: transcation getting rolled back
body: <p>I want to insert a case and send error using addError() method in salesforce in Before update trigger.But using addError method case getting rolled back.
  In Before update</p>
  <p>if(condition)
  Insert a case
  acc.addError()<code>enter code here</code>
  }
  }</p>