title: Custom errors in mysql trigger
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/465727/raise-error-within-mysql-function">raise error within MySql function</a>  </p>
  </blockquote>
  
  
  
  <p>In MsSQL I can raise a custom error:</p>
  
  <pre><code>CREATE TRIGGER [dbo].[TR__TABLE__DisableRowOnDelete]
  ON [dbo].[TABLE]
  INSTEAD OF DELETE
  AS 
  BEGIN
      RAISERROR ('Data cannot be deleted.', 16, 1);
  END
  </code></pre>
  
  <p>How might I do that in MySQL?</p>