Skip to content

Commit

Permalink
Add AWSException fallback to replicate old constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
iamed2 authored Oct 18, 2021
1 parent a9045bd commit 01776fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AWSExceptions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ struct AWSException <: Exception
streamed_body::Union{String,Nothing}
end

function AWSException(code, message, info, cause)
return AWSException(code, message, info, cause, nothing)
end

function Base.show(io::IO, e::AWSException)
print(io, AWSException, ": ", e.code)
!isempty(e.message) && print(io, " -- ", e.message)
Expand Down

0 comments on commit 01776fe

Please sign in to comment.