I have a class hierarchy in which every class has some defined properties.
I want to use builder pattern for all of these classes. Since the classes
are set up in a hierachy, ideally I would do the same with the builders.
The build
function can validate its parts before constructing the concrete
object. This guarantees that all necessary invariants are met.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Warning: Sending message failed | |
β exception = | |
β IOError(EOFError() during request(https://discord.com/api/v10/channels/997765767053459520/messages)) | |
β | |
β Stacktrace: | |
β [1] read_to_buffer(t::HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}, sizehint::Int64) | |
β @ HTTP.ConnectionPool ~/.julia/packages/HTTP/aTjcj/src/ConnectionPool.jl:275 | |
β [2] readuntil(t::HTTP.ConnectionPool.Transaction{MbedTLS.SSLContext}, f::Function, sizehint::Int64) | |
β @ HTTP.ConnectionPool ~/.julia/packages/HTTP/aTjcj/src/ConnectionPool.jl:294 | |
β [3] readuntil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input() = """22243 | |
11899 | |
1696 | |
2595 | |
5331 | |
6092 | |
5274 | |
5641 | |
1345 |
OlderNewer