Android Question 'try' without 'catch' or 'finally'

I'm creating a socket to connect to my server on port 80 but I,m facing this error in debuger

B4A Version: 9.80
Java Version: 11
Parsing code. (3.70s)
Building folders structure. (2.02s)
Compiling code. (6.22s)
Compiling layouts code. (0.02s)
Compiling debugger engine code. Error
B4A line: 50
End Sub
shell\src\b4a\example\networkphp_subs_0.java:100: error: 'try' without 'catch' or 'finally'
try {
^
1 error

my code is
B4X:
Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:
    'Activity.LoadLayout("Layout1")

    socket.Initialize("clienttoserver")
    socket.Connect("www.greenhomeiot.ir",port,10000)
    astream.Initialize(Me,"data")

End Sub

Sub clienttoserver_Connected (Successful As Boolean)
    
    
    If Successful Then
        Log("connected")
    Else
        ToastMessageShow("ارتباط با سرور برقرار نشد",True)
    End If
End Sub

Actually "B4A line: 50" in debugger error is line "End sub" for "Sub clienttoserver_Connected (Successful As Boolean)" in my code.
can anybody tell me what the problem is and how to solve it?
thanks
 
Top