result r = pImpl->SetZOrderGroup(::GetZOrderGroupOfVisualElement(layer));
__layer = layer;
- SysAssert(r == E_SUCCESS);
- ClearLastResult(); // [Temp] Will be removed.
-
- SysAssert(r == E_SUCCESS);
+ ClearLastResult();
}
const _Control::ControlList&
{
r = child.UpdateBoundsOfVisualElement(floatBounds);
}
- SysAssert(r == E_SUCCESS); // [ToDo] Exception check and rollback.
+ SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = child.GetControlDelegate().OnAttached();
SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
ControlList& children = GetChildList();
r = children.Add(&child);
- SysAssert(r == E_SUCCESS); // [ToDo] Exception check and rollback.
+ SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = GetVisualElement()->AttachChild(*child.GetVisualElement());
r = __pOwnees->Add(&window);
if (IsFailed(r))
{
- SysAssert(r == E_OUT_OF_MEMORY);
SysLogException(NID_UI, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory shortage.");
return E_OUT_OF_MEMORY;
}
r = __pOwnees->GetAt(index, pOwnee);
if (IsFailed(r))
{
- SysAssert(r == E_OUT_OF_RANGE);
SysLogException(NID_UI, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] The specified index is out of range.");
return null;
}
}
r = __pOwnees->Remove(&ownee);
- SysAssert(r == E_SUCCESS);
+ if (IsFailed(r))
+ {
+ SysLogException(NID_UI, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] The specified index is out of range.");
+ }
}
void
while (owneeCount--)
{
_Window* pOwnee = GetOwnee(0);
-
- SysAssert(pOwnee);
if (pOwnee == null)
{
continue;