Multiple error messages from service

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple error messages from service

Varun Bhansaly
Hi,
I am working on a service which might have to send back multiple error
messages.
Whats the best to achieve the same so that each error message is displayed
on a separate line ?


--
Regards,
Varun Bhansaly
Reply | Threaded
Open this post in threaded view
|

Re: Multiple error messages from service

Adrian Crum
The default behavior is that each message is on a separate line - each
message is inside a <p> element.

-Adrian

On 7/9/2010 9:41 AM, varun bhansaly wrote:
> Hi,
> I am working on a service which might have to send back multiple error
> messages.
> Whats the best to achieve the same so that each error message is displayed
> on a separate line ?
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple error messages from service

Varun Bhansaly
Thanks Adrian, is there any existing precedent as to how to send back
multiple messages from a service ?

On Fri, Jul 9, 2010 at 10:18 PM, Adrian Crum <[hidden email]> wrote:

> The default behavior is that each message is on a separate line - each
> message is inside a <p> element.
>
> -Adrian
>
>
> On 7/9/2010 9:41 AM, varun bhansaly wrote:
>
>> Hi,
>> I am working on a service which might have to send back multiple error
>> messages.
>> Whats the best to achieve the same so that each error message is displayed
>> on a separate line ?
>>
>>
>>


--
Regards,
Varun Bhansaly
Reply | Threaded
Open this post in threaded view
|

Re: Multiple error messages from service

Adrian Crum
There are two lists that can be returned from a service - a regular
(non-error) message list and an error message list. Take a look at some
the existing services for examples.

-Adrian

On 7/9/2010 9:54 AM, varun bhansaly wrote:

> Thanks Adrian, is there any existing precedent as to how to send back
> multiple messages from a service ?
>
> On Fri, Jul 9, 2010 at 10:18 PM, Adrian Crum<[hidden email]>  wrote:
>
>> The default behavior is that each message is on a separate line - each
>> message is inside a<p>  element.
>>
>> -Adrian
>>
>>
>> On 7/9/2010 9:41 AM, varun bhansaly wrote:
>>
>>> Hi,
>>> I am working on a service which might have to send back multiple error
>>> messages.
>>> Whats the best to achieve the same so that each error message is displayed
>>> on a separate line ?
>>>
>>>
>>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Multiple error messages from service

Varun Bhansaly
ServiceUtil.returnError(listOfMessages) is a good solution.

On Fri, Jul 9, 2010 at 10:28 PM, Adrian Crum <[hidden email]> wrote:

> There are two lists that can be returned from a service - a regular
> (non-error) message list and an error message list. Take a look at some the
> existing services for examples.
>
> -Adrian
>
>
> On 7/9/2010 9:54 AM, varun bhansaly wrote:
>
>> Thanks Adrian, is there any existing precedent as to how to send back
>> multiple messages from a service ?
>>
>> On Fri, Jul 9, 2010 at 10:18 PM, Adrian Crum<[hidden email]>  wrote:
>>
>>  The default behavior is that each message is on a separate line - each
>>> message is inside a<p>  element.
>>>
>>> -Adrian
>>>
>>>
>>> On 7/9/2010 9:41 AM, varun bhansaly wrote:
>>>
>>>  Hi,
>>>> I am working on a service which might have to send back multiple error
>>>> messages.
>>>> Whats the best to achieve the same so that each error message is
>>>> displayed
>>>> on a separate line ?
>>>>
>>>>
>>>>
>>>>
>>
>>


--
Regards,
Varun Bhansaly