Android Question RDC: How to Catch Error Message

rad

Member
Licensed User
Longtime User
I have set Unique Index for one of my table in MySQL.
But when this condition triggered, I only get "Server Error" message.

How do I catch the real error message from MySQL.

Regards,
RAD
 

DonManfred

Expert
Licensed User
Longtime User
My car does not work! Why?

I guess you can not Help as i am providing too less Info.

The same is true with your issue!

My gues is that your sql-command is causing this.
But it´s hard to say with the information you provide.
 
Last edited:
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
Did you try Job.ErrorMessage
B4X:
Sub JobDone(Job As HttpJob)
  ProgressDialogHide
  If Job.Success = False Then
     Log("Error: " & Job.ErrorMessage)
  Else
    If Job.JobName = "DBRequest" Then
      reqManager.HandleJobAsync(Job, "ReqManager")
    End If
  End IF
  Job.Release
End Sub
 
Upvote 0

rad

Member
Licensed User
Longtime User
Hi Anser, thanks...

B4X:
Sub JobDone(Job As HttpJob)
       
    If Job.Success = False Then
        ProgressDialogHide
        Log("Error: " & Job.ErrorMessage)
        Msgbox (Job.ErrorMessage, "Job Error")
    Else
        If Job.JobName = "DBRequest" Then
            Dim result As DBResult = reqManager.HandleJob(Job)           
           
            Dim mapResult As Map = reqManager.GetRecsTable(result)
            If mapResult.Size > 0 Then

But, all kind of error from mysql only display "Server Error".
Not specific...
 
Upvote 0
Top