ObjFW  History of src/exceptions/OFAddressTranslationFailedException.m of 25c8296a5b2f3696

History of file src/exceptions/OFAddressTranslationFailedException.m at check-in 25c8296a5b2f3696

2018-08-04
23:43
Deleted: OFDNSResolver: Improve error reporting check-in: [647ec47eda] user: js, branch: trunk, size: 0
2018-01-03
19:49
Update copyright notice file: [3f348994d9] check-in: [7e5c81e186] user: js, branch: trunk, size: 3841 [annotate] [blame] [check-ins using] [diff]
2017-10-17
00:33
Do not use implicit method return types

Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. file: [90f36f15a1] check-in: [2f4e0df8be] user: js, branch: trunk, size: 3818 [annotate] [blame] [check-ins using] [diff]

2017-06-04
23:41
Add designated initializer to all exceptions file: [aad664818a] check-in: [cc5923d6bb] user: js, branch: trunk, size: 3790 [annotate] [blame] [check-ins using] [diff]
2017-05-13
16:34
OFAddressTranslationFailedException: Fix typo file: [2a82ec8711] check-in: [ed94121c31] user: js, branch: trunk, size: 3799 [annotate] [blame] [check-ins using] [diff]
2017-05-07
20:10
Small code style change

Casts are now written like types in variable declarations. file: [b3820ad5f4] check-in: [4af49a13c3] user: js, branch: trunk, size: 3792 [annotate] [blame] [check-ins using] [diff]

2017-05-02
21:10
exceptions: Add nullability specifiers file: [eb706ff06f] check-in: [cc4cb0d824] user: js, branch: trunk, size: 3787 [annotate] [blame] [check-ins using] [diff]
2017-01-09
17:36
Update copyright

Forgot to add 2017, even though I already did quite some changes in
2017. file: [60ff6a024f] check-in: [44f45c2e35] user: js, branch: trunk, size: 3765 [annotate] [blame] [check-ins using] [diff]

2016-01-03
00:43
Update copyright

While at it, also update the mail address. file: [8c66f4c070] check-in: [cec0f072f8] user: js, branch: 0.8, size: 3736 [annotate] [blame] [check-ins using] [diff]

00:41
Update copyright

While at it, also update the mail address. file: [6b8204a11e] check-in: [2a27cf3000] user: js, branch: trunk, size: 3759 [annotate] [blame] [check-ins using] [diff]

2015-11-29
11:43
Make properties a requirement and clean up code

This increases the required GCC version from 4.0 to 4.6 (exception:
Apple GCC, which already supports this with >= 4.0 starting with OS X
10.5). Since even GCC 4.6 is really old by now, there is no point in
still supporting something even older and making the code ugly because
of that. While some hardware and OS support was dropped from GCC 4.6
compared to GCC 4.0, there is nothing in there that would be an
interesting target with the exception of BeOS maybe - but a port to BeOS
can also be achieved using the Haiku support. The other dropped OSes are
mostly old versions of OSes while newer ones are still being supported
(and those newer versions of those OSes still support the same
hardware). file: [55432953fa] check-in: [48980f2297] user: js, branch: trunk, size: 3755 [annotate] [blame] [check-ins using] [diff]

2015-10-19
22:15
Add platform.h & make platform defines consistent file: [5232ed313d] check-in: [1ba08eebc5] user: js, branch: trunk, size: 3740 [annotate] [blame] [check-ins using] [diff]
2015-05-03
11:46
OFAddressTranslationFailedException: Fix #ifdefs file: [94c73dbbc8] check-in: [050b7af83a] user: js, branch: trunk, size: 3732 [annotate] [blame] [check-ins using] [diff]
2015-02-20
18:41
Use a mutex for gai_strerror() if necessary file: [99c1abc7ff] check-in: [724e07f923] user: js, branch: trunk, size: 3710 [annotate] [blame] [check-ins using] [diff]
2015-02-16
08:39
Explicitly pass errno to exceptions

The old behaviour where the exception would access errno directly on
creation of the exception was very fragile. The two main problems with
it were that sometimes it would pick up an errno even though none had
been set and in other cases that when the exception was created errno
had already been overridden.

This also greatly increases errno handling on Win32, especially in
conjunction with sockets. It can still be improved further, though. file: [f2e2a2e8ce] check-in: [62e2de30b9] user: js, branch: trunk, size: 3351 [annotate] [blame] [check-ins using] [diff]

2015-01-03
20:57
Update copyright file: [77d11f6554] check-in: [cfd374b906] user: js, branch: trunk, size: 1743 [annotate] [blame] [check-ins using] [diff]
2014-06-21
21:43
Move all macros from OFObject.h to macros.h

This means that OFObject.h imports macros.h now, making it unnecessary
to manually import macros.h in almost every file. And while at it, also
import autorelease.h in OFObject.h, so that this doesn't need to be
manually imported in almost every file as well. file: [35959c301f] check-in: [13ee56edf3] user: js, branch: trunk, size: 1737 [annotate] [blame] [check-ins using] [diff]

2014-02-13
23:26
Use -std=c11 instead of -std=gnu11

Not using -std=gnu11 means _GNU_SOURCE does not get defined anymore,
therefore this commit also adds the required feature defines for glibc.

Additionally, this adds of_strdup in macros.h, as strdup is an
extension. file: [2cd958f861] check-in: [2f5af58573] user: js, branch: trunk, size: 1777 [annotate] [blame] [check-ins using] [diff]

2014-01-26
22:38
Move resolving functionality to resolver.m

This is in preparation for UDP sockets, so that they can share the
resolving functionality with TCP sockets. file: [978b1ac512] check-in: [49b1989b63] user: js, branch: trunk, size: 1756 [annotate] [blame] [check-ins using] [diff]

2014-01-25
17:39
Generalize stream / socket related exceptions

This is in preparation for adding UDP sockets, as UDP sockets and TCP
sockets have no common superclass, as one is stream-oriented while the
other is packet-oriented.

Read and write exceptions are for any object now, as they are useful for
a lot more than just for streams, while the others (bind, listen, etc.)
are for any socket now (the type is id in this case, though, as there is
no common superclass). file: [9b225aa65d] check-in: [8d2a5052fd] user: js, branch: trunk, size: 2976 [annotate] [blame] [check-ins using] [diff]

2014-01-04
00:24
Update copyright. file: [c1844d2c7e] check-in: [3b97fc3cd9] user: js, branch: trunk, size: 3050 [annotate] [blame] [check-ins using] [diff]
2013-11-23
01:12
Add OF_INVALID_INIT_METHOD. file: [08cce05a27] check-in: [35dafd5c57] user: js, branch: trunk, size: 3044 [annotate] [blame] [check-ins using] [diff]
2013-11-20
22:06
Make exception properties atomic. file: [e5b08ed3d1] check-in: [85e8ccc3a5] user: js, branch: trunk, size: 2989 [annotate] [blame] [check-ins using] [diff]
2013-07-05
16:54
Map WSA error codes to standard error codes. file: [c103e6dc5d] check-in: [e790f0e1f0] user: js, branch: trunk, size: 2991 [annotate] [blame] [check-ins using] [diff]
2013-06-23
14:15
Improve OFAddressTranslationFailedException.

This adds +[exceptionWithHost:]. This is useful when a hostname is
resolved without a socket. file: [075dc3d4fd] check-in: [3f74e4c5df] user: js, branch: trunk, size: 2928 [annotate] [blame] [check-ins using] [diff]

2013-06-22
12:12
Rework exceptions.

This mostly removes the argument for the class in which the exception
occurred. As backtraces were recently added for all platforms, the
passed class does not give any extra information on where the exception
occurred anymore.

This also removes a few other arguments which were not too helpful. In
the past, the idea was to pass as many arguments as possible so that it
is easier to find the origin of the exception. However, as backtraces
are a much better way to find the origin, those are not useful anymore
and just make the exception more cumbersome to use. The rule is now to
only pass arguments that might help in recovering from the exception or
provide information that is otherwise not easily accessible. file: [d737be39ca] check-in: [3d16a30f41] user: js, branch: trunk, size: 2441 [annotate] [blame] [check-ins using] [diff]

2013-03-04
17:20
Replace BOOL with bool.

The only places where BOOL is left are those where they are required by
the ABI. file: [2191f51302] check-in: [c5ef582958] user: js, branch: trunk, size: 2134 [annotate] [blame] [check-ins using] [diff]

2013-02-13
23:10
Don't cache the description of exceptions.

This was pretty pointless, as it's usually only used once. file: [1896452c73] check-in: [d9ddc4d06e] user: js, branch: trunk, size: 2128 [annotate] [blame] [check-ins using] [diff]

2013-02-12
18:22
Prefix all ivars with an underscore. file: [1441dd45a6] check-in: [e40729d406] user: js, branch: trunk, size: 2229 [annotate] [blame] [check-ins using] [diff]
2013-01-09
22:24
Update copyright. file: [967ab0fcff] check-in: [813c00ccf0] user: js, branch: trunk, size: 2214 [annotate] [blame] [check-ins using] [diff]
2012-10-09
15:07
Make use of instancetype. file: [34c9824ce1] check-in: [fb515e8e24] user: js, branch: trunk, size: 2208 [annotate] [blame] [check-ins using] [diff]
2012-10-02
11:00
Clean up properties in exceptions. file: [37a25d4426] check-in: [c7adbcf399] user: js, branch: trunk, size: 2187 [annotate] [blame] [check-ins using] [diff]
2012-01-05
00:56
Update copyright. file: [82fc8ee460] check-in: [ce70e17b38] user: js, branch: trunk, size: 2180 [annotate] [blame] [check-ins using] [diff]
2011-09-22
23:25
Exceptions are now autoreleased.

This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.

So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. file: [55b7414608] check-in: [e1e7ffa903] user: js, branch: trunk, size: 2174 [annotate] [blame] [check-ins using] [diff]

2011-06-06
15:53
Add missing imports to make gcc from trunk happy. file: [934b14dab9] check-in: [df329a38cd] user: js, branch: trunk, size: 2147 [annotate] [blame] [check-ins using] [diff]
2011-03-24
20:36
Pass the socket for socket exceptions. file: [169c6cd7e2] check-in: [a8df2cff5f] user: js, branch: trunk, size: 2123 [annotate] [blame] [check-ins using] [diff]
16:09
Added: Split OFExceptions.{h,m} into one file per exception. file: [5d7fbf9d94] check-in: [e1eea29286] user: js, branch: trunk, size: 1944 [annotate] [blame] [check-ins using]