Best practices for error handling in jQuery plugin
<p>What are some of the best practices for handling errors from within a custom jQuery plugin?</p>

<p>So far I am checking for the error conditions, using console.log and returning from my plugin. The idea is that I dont want to stop any other js on the page from working but still provide an error message to the user.  </p>

<p>The type of error conditions in particular I am thinking of are required parameters being passed in to te plugin etc.</p>

<p>I am new to writing jquery plugins so please excuse this if it is a stupid question.</p>

<p>I just really want to know from experienced developers what they do with regards to this.</p>
