Skip navigation
Currently Being Moderated

Error is not popping up

Jun 29, 2012 11:31 AM

I am getting an error in the following framework's class:

public function removeItemAt(index:int):Object

    {

        if (index < 0 || index >= length)

        {

            var message:String = resourceManager.getString(

                "collections", "outOfBounds", [ index ]);

          throw new RangeError(message);

        }

 

 

        var listIndex:int = index;

        if (localIndex)

        {

            var oldItem:Object = localIndex[index];

            listIndex = list.getItemIndex(oldItem);

        }

        return list.removeItemAt(listIndex);

    }

How can I make sure that the error is going on the screen?

 

Thanks

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points