Closed Matthimatiker closed 11 years ago
The helper class should also be able to deal with closures (at least it should not break).
Added class Mol_Util_Stringifier
that provides the methods stringify()
and stringifyException()
.
Currently, stringify()
is mostly used to create representations of invalid arguments. These representations are added to exception messages.
Create a utility class (Stringifier) that is able to convert any value into a readable string.
This should for example be useful if an unexpected argument type is received by a method and the received type/value shall be added to an exception message.
Requirements:
[1, 2, 3]
,{'a': 'b', 'c': 'd''}
stdClass
null
,true
,false
"Hello World!"