diff options
Diffstat (limited to 'mcs/class/Mono.Posix/Mono.Unix/Catalog.cs')
-rw-r--r-- | mcs/class/Mono.Posix/Mono.Unix/Catalog.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/Mono.Posix/Mono.Unix/Catalog.cs b/mcs/class/Mono.Posix/Mono.Unix/Catalog.cs index d835fec4624..1ba51307f99 100644 --- a/mcs/class/Mono.Posix/Mono.Unix/Catalog.cs +++ b/mcs/class/Mono.Posix/Mono.Unix/Catalog.cs @@ -55,11 +55,11 @@ namespace Mono.Unix { "UTF-8", out iutf8); try { if (bindtextdomain (ipackage, ilocaledir) == IntPtr.Zero) - throw new UnixIOException (Native.Errno.ENOMEM); + throw new OutOfMemoryException ("bindtextdomain"); if (bind_textdomain_codeset (ipackage, iutf8) == IntPtr.Zero) - throw new UnixIOException (Native.Errno.ENOMEM); + throw new OutOfMemoryException ("bind_textdomain_codeset"); if (textdomain (ipackage) == IntPtr.Zero) - throw new UnixIOException (Native.Errno.ENOMEM); + throw new OutOfMemoryException ("textdomain"); } finally { UnixMarshal.FreeHeap (ipackage); |