Skip to content

Commit

Permalink
[runtime] Fix the error message for exceptions created from MonoError.
Browse files Browse the repository at this point in the history
Fixes mono#15692.
  • Loading branch information
vargaz authored and monojenkins committed Jul 22, 2019
1 parent 4f29e31 commit 14512a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mono/utils/mono-error-internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,19 +214,19 @@ mono_error_set_remoting (MonoError *error, const char *message)
static inline void
mono_error_set_divide_by_zero (MonoError *error)
{
mono_error_set_generic_error (error, "System", "DivideByZeroException", "");
mono_error_set_generic_error (error, "System", "DivideByZeroException", NULL);
}

static inline void
mono_error_set_index_out_of_range (MonoError *error)
{
mono_error_set_generic_error (error, "System", "IndexOutOfRangeException", "");
mono_error_set_generic_error (error, "System", "IndexOutOfRangeException", NULL);
}

static inline void
mono_error_set_overflow (MonoError *error)
{
mono_error_set_generic_error (error, "System", "OverflowException", "");
mono_error_set_generic_error (error, "System", "OverflowException", NULL);
}

static inline void
Expand All @@ -238,13 +238,13 @@ mono_error_set_synchronization_lock (MonoError *error, const char *message)
static inline void
mono_error_set_thread_interrupted (MonoError *error)
{
mono_error_set_generic_error (error, "System.Threading", "ThreadInterruptedException", "");
mono_error_set_generic_error (error, "System.Threading", "ThreadInterruptedException", NULL);
}

static inline void
mono_error_set_null_reference (MonoError *error)
{
mono_error_set_generic_error (error, "System", "NullReferenceException", "");
mono_error_set_generic_error (error, "System", "NullReferenceException", NULL);
}

static inline void
Expand Down

0 comments on commit 14512a4

Please sign in to comment.