Home Reference Source
public class | source

ErrorService

Extends:

BaseService → ErrorService

Errors live in internal stack. Simply call the add() method to display a new error: ErrorService.add('warning', 'Foo bar!');

Method Summary

Public Methods
public

add(type: *, message: *): *

public

updateError(error: *): *

Inherited Summary

From class BaseService
public

Preform a DELETE action

public

get(url: string, params: object): object

Preform a GET action

public

post(url: string, data: object, params: object): object

Preform a POST action

public

postUpload(url: string, data: object, params: object): object

Preform a POST action

public

put(url: string, data: object): object

Preform a PUT action

Public Methods

public add(type: *, message: *): * source

Params:

NameTypeAttributeDescription
type *
message *

Return:

*

public updateError(error: *): * source

Params:

NameTypeAttributeDescription
error *

Return:

*