If the exception belong to sqlexception then only it will execute throw new servicefaultexception right?

|
roodrigues1 2022-07-08 03:14:19
you are welcome
AlwiYayayayay 2022-07-08 03:18:41
roodrigues1 2022-07-08 03:14:19
you are welcome

wait a minute πŸ™
i try it for twice, and tbh it’s not working

the first one is a misstype

roodrigues1 2022-07-08 04:10:25
What did you put in the parentheses?
SQLException was just an example. You should have an idea of what kind of error you might get and put it in the parentheses.
Kiran 2022-07-08 05:57:33
dontwikeit 2022-07-07 23:19:12
Hey can anyone help my i just pushed a project on github and now its showing compare and pull request button not my folder

This is completely fine

Kiran 2022-07-08 05:57:51
dontwikeit 2022-07-07 23:19:35

Git is creating main branch by default

mfloresacevedo 2022-07-08 06:01:57
Someone implemented Open ID
mfloresacevedo 2022-07-08 06:02:13
I have a server authorization
mfloresacevedo 2022-07-08 06:02:29
Spring boot oauth2 module
mfloresacevedo 2022-07-08 06:02:54
But I don’t have any idea how I can support Open ID
Madusankalmnop 2022-07-08 06:55:30
ROW COUNT in spring jpa
Madusankalmnop 2022-07-08 06:55:51
anyone know how to get row count of table using spring data jpa
AjayKumar_03 2022-07-08 07:00:49
Madusankalmnop 2022-07-08 06:55:51
anyone know how to get row count of table using spring data jpa

You means a column value and it’s count?

Madusankalmnop 2022-07-08 07:02:32
yes.
dontwikeit 2022-07-08 07:09:26
Kiran 2022-07-08 05:57:51
Git is creating main branch by default

Ok

Kiran 2022-07-08 07:09:53
dontwikeit 2022-07-08 07:09:26
Ok

Yes

S!D 2022-07-08 07:19:07
roodrigues1 2022-07-08 03:05:33
catch (Exception e){
String message = e.getMessage();
Log.error(“ERROR -> Failed to search data, ” message);
throw new ServiceFaultException(Fault.DB_FAULT);
}
This gets any exception, that is why it is getting the ServiceFaultException and not stopping the code.

Imagine you expect to get a SQLException in the try part, then should change it to:

try {
(your code

} catch (SQLException e){
String message = e.getMessage();
Log.error(“ERROR -> Failed to search data, ” message);
throw new ServiceFaultException(Fault.DB_FAULT);
}

If the exception belong to sqlexception then only it will execute throw new servicefaultexception right?

AjayKumar_03 2022-07-08 07:55:03
Madusankalmnop 2022-07-08 07:02:32
yes.

SELECT a.lastName, COUNT(a) FROM Author a GROUP BY a.lastName

AjayKumar_03 2022-07-08 07:55:33
use this as refrence. it will return name,5
AjayKumar_03 2022-07-08 07:55:47
if db as has five rows with name
Prabu 2022-07-08 09:24:46
Any immediate joiner here? We are looking for 5-12yrs exp people for my project.
Location – Bangalore or Coimbatore
Yogesh 2022-07-08 09:25:28
Which company??
Elmontaser Mnts 2022-07-08 09:37:42
please best course to learn spring?
D_i_S_h_A…… 2022-07-08 10:01:49
springbootmicroservices-67101.jpg
Please answer this?
ShinchanD 2022-07-08 10:04:12
pragya0508 2022-07-07 14:00:33
Please anyone help

just check for null string only that will work because you cannot check random string if you can then you cannot say randomness in that

RO 2022-07-08 10:35:45
springbootmicroservices-67107.jpg
Hii, i am getting this error. Searched in stack overflow. Not working… Pls help anyone. Spring rest api
RO 2022-07-08 10:37:05
RO 2022-07-08 10:35:45
Hii, i am getting this error. Searched in stack overflow. Not working… Pls help anyone. Spring rest api

Tried using scanbasepackage annotations. But no working it seems. Any suggestions?

ShinchanD 2022-07-08 10:38:31
AnkitSaini4466 2022-07-07 20:43:00
still not working :/

you haven’t initialize you list try to declare within the menthod do not create it globally

RO 2022-07-08 10:40:14
RO 2022-07-08 10:37:05
Tried using scanbasepackage annotations. But no working it seems. Any suggestions?

Anyone… Pls.. any changes in project directory or code annotations that should work…..

D_i_S_h_A…… 2022-07-08 11:12:22
springbootmicroservices-67112.jpg

D_i_S_h_A…… 2022-07-08 11:12:22
springbootmicroservices-67111.jpg
Tell this solution anyon3 please
|