Mercurial > repos > public > sbplib_julia
comparison src/LazyTensors/lazy_tensor_operations.jl @ 483:d5032c58c67a feature/compose_identity_mappings
Actually extend the showerror function
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 05 Nov 2020 10:35:07 +0100 |
parents | f0f272666a64 |
children | b995f056ad1f |
comparison
equal
deleted
inserted
replaced
482:f0f272666a64 | 483:d5032c58c67a |
---|---|
101 struct SizeMismatch <: Exception | 101 struct SizeMismatch <: Exception |
102 tm::TensorMapping | 102 tm::TensorMapping |
103 sz | 103 sz |
104 end | 104 end |
105 | 105 |
106 function showerror(io::IO, err::SizeMismatch) | 106 function Base.showerror(io::IO, err::SizeMismatch) |
107 print(io, "SizeMismatch: ") | 107 print(io, "SizeMismatch: ") |
108 print(io, "attempt to apply TensorMapping with domain size $(domain_size(err.tm)) to a domain of size $(err.sz)") | 108 print(io, "attempt to apply TensorMapping with domain size $(domain_size(err.tm)) to a domain of size $(err.sz)") |
109 end | 109 end |
110 | 110 |
111 | 111 |