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: 
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
Alfresco Employee

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

Is that question related to ADF?

Member II

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

yes

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