<div dir="ltr">2013/5/23 Reinier Olislagers <span dir="ltr"><<a href="mailto:reinierolislagers@gmail.com" target="_blank">reinierolislagers@gmail.com</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class="im">On 23-5-2013 3:11, silvioprog wrote:<br>
> How to get the error code of a data base error? I'm using the<br>
> PostgreSQL.<br>
<br>
</div>You can catch db specific errors (descendends of EDatabaseError IIRC) in<br>
an exception - the postgresql descendent was extended with more<br>
properties that include the error code IIRC, or you can catch<br>
EDatabaseError but you won't have much detail; see SQLDBTutorial1<br>
through 3 on the wiki - probably 2 - (it should be in at least one of<br>
them).... or of course check the documentation for sqldb.<br>
<br>
Thanks,<br>
Reinier</blockquote></div><div><br></div><div style><div>Very good explanation. I'm trying to implement it: <a href="https://github.com/mdbs99/Greyhound/issues/30">https://github.com/mdbs99/Greyhound/issues/30</a>. :)</div>

<div><br></div><div>I'll try it, thank you very much!</div><div><br></div></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>