Lines Matching refs:msg

66   std::ostringstream msg;  in ThrowException()  local
70 msg << vmsg; in ThrowException()
72 msg << fmt; in ThrowException()
74 AddReferrerLocation(msg, referrer); in ThrowException()
76 self->ThrowNewException(exception_descriptor, msg.str().c_str()); in ThrowException()
84 std::ostringstream msg; in ThrowWrappedException() local
88 msg << vmsg; in ThrowWrappedException()
90 msg << fmt; in ThrowWrappedException()
92 AddReferrerLocation(msg, referrer); in ThrowWrappedException()
94 self->ThrowNewWrappedException(exception_descriptor, msg.str().c_str()); in ThrowWrappedException()
161 void ThrowClassCastException(const char* msg) { in ThrowClassCastException() argument
162 ThrowException("Ljava/lang/ClassCastException;", nullptr, msg); in ThrowClassCastException()
168 std::ostringstream msg; in ThrowClassCircularityError() local
169 msg << mirror::Class::PrettyDescriptor(c); in ThrowClassCircularityError()
170 ThrowException("Ljava/lang/ClassCircularityError;", c, msg.str().c_str()); in ThrowClassCircularityError()
192 std::ostringstream msg; in ThrowIllegalAccessErrorClass() local
193 msg << "Illegal class access: '" << mirror::Class::PrettyDescriptor(referrer) in ThrowIllegalAccessErrorClass()
195 ThrowException("Ljava/lang/IllegalAccessError;", referrer, msg.str().c_str()); in ThrowIllegalAccessErrorClass()
202 std::ostringstream msg; in ThrowIllegalAccessErrorClassForMethodDispatch() local
203 msg << "Illegal class access ('" << mirror::Class::PrettyDescriptor(referrer) in ThrowIllegalAccessErrorClassForMethodDispatch()
207 ThrowException("Ljava/lang/IllegalAccessError;", referrer, msg.str().c_str()); in ThrowIllegalAccessErrorClassForMethodDispatch()
211 std::ostringstream msg; in ThrowIllegalAccessErrorMethod() local
212 msg << "Method '" << ArtMethod::PrettyMethod(accessed) << "' is inaccessible to class '" in ThrowIllegalAccessErrorMethod()
214 ThrowException("Ljava/lang/IllegalAccessError;", referrer, msg.str().c_str()); in ThrowIllegalAccessErrorMethod()
218 std::ostringstream msg; in ThrowIllegalAccessErrorField() local
219 msg << "Field '" << ArtField::PrettyField(accessed, false) << "' is inaccessible to class '" in ThrowIllegalAccessErrorField()
221 ThrowException("Ljava/lang/IllegalAccessError;", referrer, msg.str().c_str()); in ThrowIllegalAccessErrorField()
225 std::ostringstream msg; in ThrowIllegalAccessErrorFinalField() local
226 msg << "Final field '" << ArtField::PrettyField(accessed, false) in ThrowIllegalAccessErrorFinalField()
230 msg.str().c_str()); in ThrowIllegalAccessErrorFinalField()
242 void ThrowIllegalAccessException(const char* msg) { in ThrowIllegalAccessException() argument
243 ThrowException("Ljava/lang/IllegalAccessException;", nullptr, msg); in ThrowIllegalAccessException()
248 void ThrowIllegalArgumentException(const char* msg) { in ThrowIllegalArgumentException() argument
249 ThrowException("Ljava/lang/IllegalArgumentException;", nullptr, msg); in ThrowIllegalArgumentException()
254 void ThrowIllegalStateException(const char* msg) { in ThrowIllegalStateException() argument
255 ThrowException("Ljava/lang/IllegalStateException;", nullptr, msg); in ThrowIllegalStateException()
262 std::ostringstream msg; in ThrowIncompatibleClassChangeError() local
263 msg << "The method '" << ArtMethod::PrettyMethod(method) << "' was expected to be of type " in ThrowIncompatibleClassChangeError()
267 msg.str().c_str()); in ThrowIncompatibleClassChangeError()
277 std::ostringstream msg; in ThrowIncompatibleClassChangeErrorClassForInterfaceSuper() local
278 msg << "Class '" << mirror::Class::PrettyDescriptor(this_object->GetClass()) in ThrowIncompatibleClassChangeErrorClassForInterfaceSuper()
285 msg.str().c_str()); in ThrowIncompatibleClassChangeErrorClassForInterfaceSuper()
294 std::ostringstream msg; in ThrowIncompatibleClassChangeErrorClassForInterfaceDispatch() local
295 msg << "Class '" << mirror::Class::PrettyDescriptor(this_object->GetClass()) in ThrowIncompatibleClassChangeErrorClassForInterfaceDispatch()
302 msg.str().c_str()); in ThrowIncompatibleClassChangeErrorClassForInterfaceDispatch()
307 std::ostringstream msg; in ThrowIncompatibleClassChangeErrorField() local
308 msg << "Expected '" << ArtField::PrettyField(resolved_field) << "' to be a " in ThrowIncompatibleClassChangeErrorField()
312 msg.str().c_str()); in ThrowIncompatibleClassChangeErrorField()
385 void ThrowNegativeArraySizeException(const char* msg) { in ThrowNegativeArraySizeException() argument
386 ThrowException("Ljava/lang/NegativeArraySizeException;", nullptr, msg); in ThrowNegativeArraySizeException()
395 std::ostringstream msg; in ThrowNoSuchFieldError() local
397 msg << "No " << scope << "field " << name << " of type " << type in ThrowNoSuchFieldError()
399 ThrowException("Ljava/lang/NoSuchFieldError;", c, msg.str().c_str()); in ThrowNoSuchFieldError()
403 std::ostringstream msg; in ThrowNoSuchFieldException() local
405 msg << "No field " << name << " in class " << c->GetDescriptor(&temp); in ThrowNoSuchFieldException()
406 ThrowException("Ljava/lang/NoSuchFieldException;", c, msg.str().c_str()); in ThrowNoSuchFieldException()
415 std::ostringstream msg; in ThrowNoSuchMethodError() local
417 msg << "No " << type << " method " << name << signature in ThrowNoSuchMethodError()
419 ThrowException("Ljava/lang/NoSuchMethodError;", c, msg.str().c_str()); in ThrowNoSuchMethodError()
425 std::ostringstream msg; in ThrowNullPointerExceptionForFieldAccess() local
426 msg << "Attempt to " << (is_read ? "read from" : "write to") in ThrowNullPointerExceptionForFieldAccess()
428 ThrowException("Ljava/lang/NullPointerException;", nullptr, msg.str().c_str()); in ThrowNullPointerExceptionForFieldAccess()
435 std::ostringstream msg; in ThrowNullPointerExceptionForMethodAccessImpl() local
436 msg << "Attempt to invoke " << type << " method '" in ThrowNullPointerExceptionForMethodAccessImpl()
438 ThrowException("Ljava/lang/NullPointerException;", nullptr, msg.str().c_str()); in ThrowNullPointerExceptionForMethodAccessImpl()
735 void ThrowNullPointerException(const char* msg) { in ThrowNullPointerException() argument
736 ThrowException("Ljava/lang/NullPointerException;", nullptr, msg); in ThrowNullPointerException()
777 std::string msg("stack size "); in ThrowStackOverflowError() local
778 msg += PrettySize(self->GetStackSize()); in ThrowStackOverflowError()
809 ScopedLocalRef<jstring> s(env, env->NewStringUTF(msg.c_str())); in ThrowStackOverflowError()
899 std::ostringstream msg; in ThrowWrongMethodTypeException() local
900 msg << "Expected " << expected_descriptor << " but was " << actual_descriptor; in ThrowWrongMethodTypeException()
901 ThrowException("Ljava/lang/invoke/WrongMethodTypeException;", nullptr, msg.str().c_str()); in ThrowWrongMethodTypeException()