Chromium Code Reviews| Index: runtime/vm/exceptions.cc |
| diff --git a/runtime/vm/exceptions.cc b/runtime/vm/exceptions.cc |
| index 96b498482933e14e56d3cca176b40bcdcdeb0600..c7e0fa1afbff0372fa5bb1a8f1775f33b794d61d 100644 |
| --- a/runtime/vm/exceptions.cc |
| +++ b/runtime/vm/exceptions.cc |
| @@ -667,6 +667,13 @@ void Exceptions::ThrowArgumentError(const Instance& arg) { |
| } |
| +void Exceptions::ThrowRangeError(const Instance& arg) { |
| + const Array& args = Array::Handle(Array::New(1)); |
| + args.SetAt(0, arg); |
| + Exceptions::ThrowByType(Exceptions::kRange, args); |
|
Ivan Posva
2014/09/02 15:27:07
It would be helpful to give the expected range her
Vyacheslav Egorov (Google)
2014/09/02 16:02:53
Alternatively I can just format a string like we d
|
| +} |
| + |
| + |
| RawObject* Exceptions::Create(ExceptionType type, const Array& arguments) { |
| Library& library = Library::Handle(); |
| const String* class_name = NULL; |