Avatar

Correct answer by
Community Advisor

Hey,

How about using String groups?

Use below in your library

// Infos, errors or warnings

var Test_STRING_GROUP = new StringGroup("namespace:schema")

try

{

//....

}

catch (e)

{

    if (e.soapFault)

      logError(Test_STRING_GROUP .error000_1(e.soapFault.faultstring))

    else

      logError(Test_STRING_GROUP .error000_1(e))

  }

Once done, then you can set message and  Text in String groups , something like

Message : error000_1

Text : An error occurred: {1}

Thanks,

Kapil

View solution in original post