Improve exceptions.

FossilOrigin-Name: 12b5ef483a1f9eae92df83cf8a6aded299ef10dd2972059a36c79d299e676a0d
This commit is contained in:
Jonathan Schleifer 2013-07-23 14:11:41 +00:00
parent 16dc91b0e7
commit 25c48048a1
8 changed files with 50 additions and 61 deletions

View file

@ -124,7 +124,7 @@ convert_type(PGresult *res, int column, OFString *string)
}
if (count > SIZE_MAX - state->state)
@throw [OFOutOfRangeException exceptionWithClass: [self class]];
@throw [OFOutOfRangeException exception];
if (state->state + count > state->extra[1])
count = state->extra[1] - state->state;