Operator =.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(error_object), | intent(inout) | :: | lhs | Left hand side. |
||
| type(error_object), | intent(in) | :: | rhs | Right hand side. |
pure subroutine err_assign_err(lhs, rhs)
!< Operator `=`.
class(error_object), intent(inout) :: lhs !< Left hand side.
type(error_object), intent(in) :: rhs !< Right hand side.
lhs%status = rhs%status
if (allocated(rhs%message)) lhs%message = rhs%message
endsubroutine err_assign_err