1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-05 08:05:24 +02:00

Bug 479528 - Make an indexer error message more informative

Change-Id: If58c3aa66ebcf15d0a21fd765b64e75bc1137b86
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
This commit is contained in:
Nathan Ridge 2015-11-27 01:56:58 -05:00 committed by Sergey Prigogin
parent e0ddf0dddf
commit 82bfb9bc00

View file

@ -113,7 +113,9 @@ class PDOMCPPClassType extends PDOMCPPBinding implements IPDOMCPPClassType, IPDO
@Override @Override
public final void addChild(PDOMNode member) throws CoreException { public final void addChild(PDOMNode member) throws CoreException {
throw new UnsupportedOperationException("addMember method should be called instead."); //$NON-NLS-1$ throw new UnsupportedOperationException("addMember should be called instead to add " + //$NON-NLS-1$
(member instanceof IBinding ? ((IBinding) member).getName() : member.toString()) +
" to " + getName()); //$NON-NLS-1$
} }
@Override @Override