How to throw custome exception with customarize error messsage ie:"Can't create node here" .

cancel
Showing results for 
Search instead for 
Did you mean: 
madhukar2505
Member II

How to throw custome exception with customarize error messsage ie:"Can't create node here" .

I am creating a folder and renaming it by custom behavior, onCreateNode policy.

Now I need to throw exception ie

thow new CustomException("Can not create node here");

Please let me know how to implement it.

3 Replies
eugenio_romano
Alfresco Employee

Re: How to throw custome exception with customarize error messsage ie:"Can't create node here" .

Is that question related to ADF?

madhukar2505
Member II

Re: How to throw custome exception with customarize error messsage ie:"Can't create node here" .

yes

eugenio_romano
Alfresco Employee

Re: How to throw custome exception with customarize error messsage ie:"Can't create node here" .

Maybe share a piece of your code could help